Skip to content

Commit 7bd9764

Browse files
committed
fix
1 parent 01a3a60 commit 7bd9764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/codegen/src/ir.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ impl CodeInfo {
695695
}
696696
(Instruction::LoadConst { consti }, Instruction::ToBool) => {
697697
let consti = consti.get(curr.arg);
698-
let constant = &self.metadata.consts[consti];
698+
let constant = &self.metadata.consts[consti.as_usize()];
699699
if let ConstantData::Boolean { .. } = constant {
700700
Some((curr_instr, OpArg::from(consti.as_u32())))
701701
} else {

0 commit comments

Comments
 (0)