diff options
| author | Ralf Jung <post@ralfj.de> | 2022-07-05 16:53:48 -0400 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2022-07-09 07:27:29 -0400 |
| commit | e9442b60e0516d7edd66cddc47ac363aab0cd69b (patch) | |
| tree | bd0c5e8105dba3e2e8c63381b8d75d2319ced130 | |
| parent | e151a095abf665b821b9e4290ed8e5997998aae9 (diff) | |
| download | rust-e9442b60e0516d7edd66cddc47ac363aab0cd69b.tar.gz rust-e9442b60e0516d7edd66cddc47ac363aab0cd69b.zip | |
fix cranelift and gcc backends
| -rw-r--r-- | src/constant.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/constant.rs b/src/constant.rs index ef72e6efb94..f90ad534970 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -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() { |
