mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 17:53:56 +00:00
Fix type in load_scalar
This commit is contained in:
parent
d629d97f25
commit
596fdd5a64
@ -103,7 +103,7 @@ pub fn codegen_intrinsic_call<'a, 'tcx: 'a>(
|
||||
// Insert non returning intrinsics here
|
||||
match intrinsic {
|
||||
"abort" => {
|
||||
trap_panic(fx, "Called intrinisc::abort.");
|
||||
trap_panic(fx, "Called intrinsic::abort.");
|
||||
}
|
||||
"unreachable" => {
|
||||
trap_unreachable(fx, "[corruption] Called intrinsic::unreachable.");
|
||||
|
@ -51,8 +51,8 @@ fn load_scalar<'a, 'tcx: 'a>(
|
||||
offset: i32,
|
||||
) -> Value {
|
||||
if clif_ty == types::I128 {
|
||||
let a = fx.bcx.ins().load(clif_ty, MemFlags::new(), addr, offset);
|
||||
let b = fx.bcx.ins().load(clif_ty, MemFlags::new(), addr, offset + 8);
|
||||
let a = fx.bcx.ins().load(types::I64, MemFlags::new(), addr, offset);
|
||||
let b = fx.bcx.ins().load(types::I64, MemFlags::new(), addr, offset + 8);
|
||||
fx.bcx.ins().iconcat(a, b)
|
||||
} else {
|
||||
fx.bcx.ins().load(clif_ty, MemFlags::new(), addr, offset)
|
||||
|
Loading…
Reference in New Issue
Block a user