Skip to content

Commit a28e572

Browse files
committed
Missing resolve
1 parent 80dc4fa commit a28e572

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/noirc_evaluator/src/ssa/opt/simplify_cfg.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ fn check_for_negated_jmpif_condition(
221221
call_stack,
222222
}) = function.dfg[block].terminator()
223223
{
224-
if let Value::Instruction { instruction, .. } = function.dfg[*condition] {
224+
let condition = function.dfg.resolve(*condition);
225+
if let Value::Instruction { instruction, .. } = function.dfg[condition] {
225226
if let Instruction::Not(negated_condition) = function.dfg[instruction] {
226227
let call_stack = *call_stack;
227228
let jmpif = TerminatorInstruction::JmpIf {

0 commit comments

Comments
 (0)