From 35e8e461ca0f3027e650a52d5d2c69583a9ddef9 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 26 Apr 2010 15:02:40 -0700 Subject: [PATCH] ir_function_inlining: Handle inlining of structure dereferences. --- ir_function_inlining.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)); } } -- 2.30.2