Skip to content

Commit 2231545

Browse files
committed
Use pointer_ty instead of func.dfg.value_type
This fixes a borrowck error with the current main branch of Cranelift.
1 parent 2bcc936 commit 2231545

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
12161216
// FIXME once unwinding is supported, change this to actually catch panics
12171217
let f_sig = fx.bcx.func.import_signature(Signature {
12181218
call_conv: fx.target_config.default_call_conv,
1219-
params: vec![AbiParam::new(fx.bcx.func.dfg.value_type(data))],
1219+
params: vec![AbiParam::new(pointer_ty(fx.tcx))],
12201220
returns: vec![],
12211221
});
12221222

0 commit comments

Comments
 (0)