diff options
author | Eric Anholt <[email protected]> | 2010-06-23 11:37:12 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2010-06-23 15:20:29 -0700 |
commit | 4b6fd39c89f308a379882426c1ed3616d60c4628 (patch) | |
tree | 2c8f6f7e2e3eae5922a91c61a686457c614068fe /ir_reader.cpp | |
parent | 02fc4b34e40f655eebc99f6502293b4d4000e0b3 (diff) |
Add a virtual clone() method to ir_instruction.
This will be used by function inlining, the linker, and avoiding double
usage of the LHS deref chains in ++, *=, and similar operations.
Diffstat (limited to 'ir_reader.cpp')
-rw-r--r-- | ir_reader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ir_reader.cpp b/ir_reader.cpp index a8ccb30999f..ee320ddac28 100644 --- a/ir_reader.cpp +++ b/ir_reader.cpp @@ -334,9 +334,9 @@ read_instruction(_mesa_glsl_parse_state *st, s_expression *expr, s_symbol *symbol = SX_AS_SYMBOL(expr); if (symbol != NULL) { if (strcmp(symbol->value(), "break") == 0 && loop_ctx != NULL) - return new ir_loop_jump(loop_ctx, ir_loop_jump::jump_break); + return new ir_loop_jump(ir_loop_jump::jump_break); if (strcmp(symbol->value(), "continue") == 0 && loop_ctx != NULL) - return new ir_loop_jump(loop_ctx, ir_loop_jump::jump_continue); + return new ir_loop_jump(ir_loop_jump::jump_continue); } s_list *list = SX_AS_LIST(expr); |