Use Size
instead of u64
in mir interpretation
This commit is contained in:
parent
3e933f4d8c
commit
7c25aa79c5
17 changed files with 204 additions and 197 deletions
|
@ -143,7 +143,7 @@ impl<'a, 'tcx> OperandRef<'tcx> {
|
|||
|
||||
let llval = unsafe { LLVMConstInBoundsGEP(
|
||||
consts::bitcast(base_addr, Type::i8p(bx.cx)),
|
||||
&C_usize(bx.cx, offset),
|
||||
&C_usize(bx.cx, offset.bytes()),
|
||||
1,
|
||||
)};
|
||||
let llval = consts::bitcast(llval, layout.llvm_type(bx.cx).ptr_to());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue