We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a3a60 commit 7bd9764Copy full SHA for 7bd9764
crates/codegen/src/ir.rs
@@ -695,7 +695,7 @@ impl CodeInfo {
695
}
696
(Instruction::LoadConst { consti }, Instruction::ToBool) => {
697
let consti = consti.get(curr.arg);
698
- let constant = &self.metadata.consts[consti];
+ let constant = &self.metadata.consts[consti.as_usize()];
699
if let ConstantData::Boolean { .. } = constant {
700
Some((curr_instr, OpArg::from(consti.as_u32())))
701
} else {
0 commit comments