Skip to content

Commit e9442b6

Browse files
committed
fix cranelift and gcc backends
1 parent e151a09 commit e9442b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/constant.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ pub(crate) fn codegen_const_value<'tcx>(
167167
}
168168

169169
match const_val {
170+
ConstValue::ZST => unreachable!(), // we already handles ZST above
170171
ConstValue::Scalar(x) => match x {
171172
Scalar::Int(int) => {
172173
if fx.clif_type(layout.ty).is_some() {

0 commit comments

Comments
 (0)