Fix uninit intrinsic for zst values

This commit is contained in:
bjorn3 2019-08-13 19:08:39 +02:00
parent f9c20ce244
commit 9fdef69fe4

View file

@ -607,7 +607,7 @@ pub fn codegen_intrinsic_call<'a, 'tcx: 'a>(
return;
}
match ret {
CPlace::NoPlace(_layout) => unreachable!("{:?}", ret),
CPlace::NoPlace(_layout) => {},
CPlace::Var(var, layout) => {
let clif_ty = fx.clif_type(layout.ty).unwrap();
let val = match clif_ty {