We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80dc4fa commit a28e572Copy full SHA for a28e572
compiler/noirc_evaluator/src/ssa/opt/simplify_cfg.rs
@@ -221,7 +221,8 @@ fn check_for_negated_jmpif_condition(
221
call_stack,
222
}) = function.dfg[block].terminator()
223
{
224
- if let Value::Instruction { instruction, .. } = function.dfg[*condition] {
+ let condition = function.dfg.resolve(*condition);
225
+ if let Value::Instruction { instruction, .. } = function.dfg[condition] {
226
if let Instruction::Not(negated_condition) = function.dfg[instruction] {
227
let call_stack = *call_stack;
228
let jmpif = TerminatorInstruction::JmpIf {
0 commit comments