diff options
| author | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-05-18 21:49:46 -0700 |
|---|---|---|
| committer | DrMeepster <19316085+DrMeepster@users.noreply.github.com> | 2022-06-15 18:39:23 -0700 |
| commit | 1d1ff362143facf95e91cb98cbe4957c6165bc11 (patch) | |
| tree | 39dadd4bb1c2eb8f8d903d9ca2bb167bb9b57096 | |
| parent | 6cb38fb3398dc009fb9e8b623bc7d43883cbec80 (diff) | |
| download | rust-1d1ff362143facf95e91cb98cbe4957c6165bc11.tar.gz rust-1d1ff362143facf95e91cb98cbe4957c6165bc11.zip | |
fix codegen assertion
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/mir/operand.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/operand.rs b/compiler/rustc_codegen_ssa/src/mir/operand.rs index e8fab804524..2e655ae94cc 100644 --- a/compiler/rustc_codegen_ssa/src/mir/operand.rs +++ b/compiler/rustc_codegen_ssa/src/mir/operand.rs @@ -118,8 +118,8 @@ impl<'a, 'tcx, V: CodegenObject> OperandRef<'tcx, V> { } pub fn deref<Cx: LayoutTypeMethods<'tcx>>(self, cx: &Cx) -> PlaceRef<'tcx, V> { - if self.layout.ty.is_box() && !self.layout.abi.is_scalar() { - bug!("dereferencing non-scalar box ({:?}) in codegen", self.layout.ty); + if self.layout.ty.is_box() { + bug!("dereferencing {:?} in codegen", self.layout.ty); } let projected_ty = self |
