diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-05-19 13:52:29 +0200 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-05-26 15:23:25 -0700 |
commit | 36ea28646c666ac2af9b43c47e65f9f53ffcc390 (patch) | |
tree | 093bdb4d42b16b95201b2fa852dcb53ace32ae32 /ir_constant_folding.cpp | |
parent | 7fe3de6fde0cb7e73ef36d0d600f00f4793ced0d (diff) |
Refactor ir_dereference data fields to subclasses
Diffstat (limited to 'ir_constant_folding.cpp')
-rw-r--r-- | ir_constant_folding.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ir_constant_folding.cpp b/ir_constant_folding.cpp index 9a2a7f3f2e..c7019ffc62 100644 --- a/ir_constant_folding.cpp +++ b/ir_constant_folding.cpp @@ -129,21 +129,21 @@ void ir_constant_folding_visitor::visit(ir_dereference_array *ir) { ir_constant *const_val = - ir->selector.array_index->constant_expression_value(); + ir->array_index->constant_expression_value(); if (const_val) - ir->selector.array_index = const_val; + ir->array_index = const_val; else - ir->selector.array_index->accept(this); + ir->array_index->accept(this); - ir->var->accept(this); + ir->array->accept(this); } void ir_constant_folding_visitor::visit(ir_dereference_record *ir) { - ir->var->accept(this); + ir->record->accept(this); } |