fix codegen assertion
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user