diff --git a/src/base.rs b/src/base.rs index 007ff5390de5..cb22606ec269 100644 --- a/src/base.rs +++ b/src/base.rs @@ -356,7 +356,8 @@ fn trans_stmt<'tcx>( } } Rvalue::Cast(CastKind::Pointer(PointerCast::UnsafeFnPointer), operand, ty) - | Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer), operand, ty) => { + | Rvalue::Cast(CastKind::Pointer(PointerCast::MutToConstPointer), operand, ty) + | Rvalue::Cast(CastKind::Pointer(PointerCast::ArrayToPointer), operand, ty) => { let operand = trans_operand(fx, operand); let layout = fx.layout_of(ty); lval.write_cvalue(fx, operand.unchecked_cast_to(layout));