fix cranelift and gcc backends
This commit is contained in:
parent
e151a095ab
commit
e9442b60e0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user