From: Eric Anholt Date: Mon, 26 Apr 2010 22:02:40 +0000 (-0700) Subject: ir_function_inlining: Handle inlining of structure dereferences. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35e8e461ca0f3027e650a52d5d2c69583a9ddef9;p=mesa.git ir_function_inlining: Handle inlining of structure dereferences. --- diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp index 5b1b3cb8b0b..385ce9ef6d7 100644 --- a/ir_function_inlining.cpp +++ b/ir_function_inlining.cpp @@ -205,8 +205,7 @@ ir_function_cloning_visitor::visit(ir_dereference *ir) this->result = new ir_dereference(var, index); } else { assert(ir->mode == ir_dereference::ir_reference_record); - /* FINISHME: inlining of structure references */ - assert(0); + this->result = new ir_dereference(var, strdup(ir->selector.field)); } }