fix cranelift and gcc backends

This commit is contained in:
Ralf Jung 2022-07-05 16:53:48 -04:00
parent e151a095ab
commit e9442b60e0

View File

@ -167,6 +167,7 @@ pub(crate) fn codegen_const_value<'tcx>(
}
match const_val {
ConstValue::ZST => unreachable!(), // we already handles ZST above
ConstValue::Scalar(x) => match x {
Scalar::Int(int) => {
if fx.clif_type(layout.ty).is_some() {