fix codegen assertion
This commit is contained in:
parent
6cb38fb339
commit
1d1ff36214
1 changed files with 2 additions and 2 deletions
|
@ -118,8 +118,8 @@ impl<'a, 'tcx, V: CodegenObject> OperandRef<'tcx, V> {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn deref<Cx: LayoutTypeMethods<'tcx>>(self, cx: &Cx) -> PlaceRef<'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() {
|
if self.layout.ty.is_box() {
|
||||||
bug!("dereferencing non-scalar box ({:?}) in codegen", self.layout.ty);
|
bug!("dereferencing {:?} in codegen", self.layout.ty);
|
||||||
}
|
}
|
||||||
|
|
||||||
let projected_ty = self
|
let projected_ty = self
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue