Skip to content

Commit 9ec096e

Browse files
committed
fixup! Enable to handle some promoted constants
1 parent 095e469 commit 9ec096e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/analyze/basic_block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ impl<'tcx, 'ctx> Analyzer<'tcx, 'ctx> {
144144
mir_ty::TyKind::Bool => {
145145
PlaceType::with_ty_and_term(rty::Type::bool(), chc::Term::bool(bytes[0] != 0))
146146
}
147-
mir_ty::Int(_) => {
148-
// TODO: see target endianess
147+
mir_ty::TyKind::Int(_) => {
148+
// TODO: see target endianness
149149
let val = match bytes.len() {
150150
1 => i8::from_ne_bytes(bytes.try_into().unwrap()) as i64,
151151
2 => i16::from_ne_bytes(bytes.try_into().unwrap()) as i64,

0 commit comments

Comments
 (0)