Skip to content

Commit

Permalink
Fix TyConst with TyConstKind Value
Browse files Browse the repository at this point in the history
  • Loading branch information
tautschnig committed Jun 7, 2024
1 parent d4cc107 commit 26cdae0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/operand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,8 @@ impl<'tcx> GotocCtx<'tcx> {
_ => Expr::init_unit(self.codegen_ty_stable(*lit_ty), &self.symbol_table),
}
}
TyConstKind::Bound(..) | TyConstKind::Value(..) => {
unreachable!()
}
TyConstKind::Value(ty, alloc) => self.codegen_allocation(alloc, *ty, span),
TyConstKind::Bound(..) => unreachable!(),
TyConstKind::Param(..) | TyConstKind::Unevaluated(..) => {
unreachable!()
}
Expand Down

0 comments on commit 26cdae0

Please sign in to comment.