diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-09-01 14:00:21 +0200 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-09-01 14:00:21 +0200 |
| commit | 2231545ebf83901ced90d469b891b04a1fe89b97 (patch) | |
| tree | 4b619411e29973b64c8437f1d89ab8bc9772f91a | |
| parent | 2bcc936a5aeea322cec6d1f04d5323d11e033723 (diff) | |
| download | rust-2231545ebf83901ced90d469b891b04a1fe89b97.tar.gz rust-2231545ebf83901ced90d469b891b04a1fe89b97.zip | |
Use pointer_ty instead of func.dfg.value_type
This fixes a borrowck error with the current main branch of Cranelift.
| -rw-r--r-- | src/intrinsics/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrinsics/mod.rs b/src/intrinsics/mod.rs index 95239f415a9..186772d807d 100644 --- a/src/intrinsics/mod.rs +++ b/src/intrinsics/mod.rs @@ -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![], }); |
