diff options
Diffstat (limited to 'ir_constant_folding.cpp')
-rw-r--r-- | ir_constant_folding.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp index eabdc240ad..af6674c3f6 100644 --- a/ir_constant_folding.cpp +++ b/ir_constant_folding.cpp @@ -141,4 +141,7 @@ ir_constant_folding_visitor::visit(ir_if *ir) ir->condition = const_val; else ir->condition->accept(this); + + visit_exec_list(&ir->then_instructions, this); + visit_exec_list(&ir->else_instructions, this); } |