Skip to content

Commit

Permalink
Missing resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Feb 28, 2025
1 parent 5aab49c commit 6537871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/noirc_evaluator/src/ssa/opt/simplify_cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ fn check_for_negated_jmpif_condition(
call_stack,
}) = function.dfg[block].terminator()
{
if let Value::Instruction { instruction, .. } = function.dfg[*condition] {
let condition = function.dfg.resolve(*condition);
if let Value::Instruction { instruction, .. } = function.dfg[condition] {
if let Instruction::Not(negated_condition) = function.dfg[instruction] {
let call_stack = *call_stack;
let jmpif = TerminatorInstruction::JmpIf {
Expand Down

0 comments on commit 6537871

Please sign in to comment.