Fix cranelift build
This commit is contained in:
parent
c478574786
commit
3a7970848c
6 changed files with 28 additions and 10 deletions
|
@ -1064,7 +1064,8 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
|
|||
|
||||
fx.bcx.ins().call_indirect(f_sig, f, &[data]);
|
||||
|
||||
let ret_val = CValue::const_val(fx, ret.layout(), 0);
|
||||
let layout = ret.layout();
|
||||
let ret_val = CValue::const_val(fx, layout, ty::ScalarInt::null(layout.size));
|
||||
ret.write_cvalue(fx, ret_val);
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue