Use pointer_ty instead of func.dfg.value_type

This fixes a borrowck error with the current main branch of Cranelift.
This commit is contained in:
bjorn3 2022-09-01 14:00:21 +02:00
parent 2bcc936a5a
commit 2231545ebf

View File

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