diff options
author | Eric Anholt <[email protected]> | 2010-05-12 12:15:40 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-01 15:15:04 -0700 |
commit | f389862006dde5b0d4bcf36ba85364a1ef6d4a5d (patch) | |
tree | a33507dacf0cd083d793b665d6933f2340cd1f51 /ir_constant_folding.cpp | |
parent | 49a5d5c4f5bf6e8d6ba344e8496d1d1fa0b4586d (diff) |
ir_constant_folding: Look at instructions in functions.
This was broken in the ir_label -> ir_function rework.
Diffstat (limited to 'ir_constant_folding.cpp')
-rw-r--r-- | ir_constant_folding.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 |