diff options
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp b/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp index 8bdf0943e2e..7de27e3b22e 100644 --- a/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp +++ b/src/mesa/drivers/dri/i965/brw_dead_control_flow.cpp @@ -45,10 +45,10 @@ dead_control_flow_eliminate(backend_visitor *v) bblock_t *block = cfg.blocks[b]; bool found = false; - /* ENDIF instructions, by definition, can only be found at the ends of + /* ENDIF instructions, by definition, can only be found at the start of * basic blocks. */ - backend_instruction *endif_inst = block->end; + backend_instruction *endif_inst = block->start; if (endif_inst->opcode != BRW_OPCODE_ENDIF) continue; |