diff options
| author | Lukas Markeffsky <@> | 2024-09-15 16:47:42 +0200 |
|---|---|---|
| committer | Lukas Markeffsky <@> | 2024-09-24 22:17:55 +0200 |
| commit | 46ecb23198fa83136a266cb5a18675d2d342ab18 (patch) | |
| tree | 7708e1bcb9a223316a7fe8535ed0702c95214778 /compiler/rustc_codegen_cranelift/src/base.rs | |
| parent | 67bb749c2e1cf503fee64842963dd3e72a417a3f (diff) | |
| download | rust-46ecb23198fa83136a266cb5a18675d2d342ab18.tar.gz rust-46ecb23198fa83136a266cb5a18675d2d342ab18.zip | |
unify dyn* coercions with other pointer coercions
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/base.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/base.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs index dc342e151f3..876466e79bc 100644 --- a/compiler/rustc_codegen_cranelift/src/base.rs +++ b/compiler/rustc_codegen_cranelift/src/base.rs @@ -770,7 +770,11 @@ fn codegen_stmt<'tcx>( let operand = codegen_operand(fx, operand); crate::unsize::coerce_unsized_into(fx, operand, lval); } - Rvalue::Cast(CastKind::DynStar, ref operand, _) => { + Rvalue::Cast( + CastKind::PointerCoercion(PointerCoercion::DynStar), + ref operand, + _, + ) => { let operand = codegen_operand(fx, operand); crate::unsize::coerce_dyn_star(fx, operand, lval); } |
