From f389862006dde5b0d4bcf36ba85364a1ef6d4a5d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 12 May 2010 12:15:40 -0700 Subject: [PATCH] ir_constant_folding: Look at instructions in functions. This was broken in the ir_label -> ir_function rework. --- ir_constant_folding.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp index c7019ffc626..b3f27c80c85 100644 --- a/ir_constant_folding.cpp +++ b/ir_constant_folding.cpp @@ -91,7 +91,10 @@ ir_constant_folding_visitor::visit(ir_function_signature *ir) void ir_constant_folding_visitor::visit(ir_function *ir) { - (void) ir; + foreach_iter(exec_list_iterator, iter, *ir) { + ir_function_signature *const sig = (ir_function_signature *) iter.get(); + sig->accept(this); + } } void -- 2.30.2