summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-06-24 15:53:19 -0700
committerMatt Turner <mattst88@gmail.com>2014-07-01 08:55:51 -0700
commitc5030ac0ac15d3c91c4352789f94281da9a9dcad (patch)
tree76c87e55c8a69d360180466b977c006dbf693bac /src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
parentbc2fbbafd216676ccc7c3abd794ecb7dd1fa631f (diff)
downloadexternal_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.zip
external_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.tar.gz
external_mesa3d-c5030ac0ac15d3c91c4352789f94281da9a9dcad.tar.bz2
i965: Use typed foreach_in_list instead of foreach_list.
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
index db6063c..a277f99 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp
@@ -312,9 +312,7 @@ vec4_visitor::opt_copy_propagation()
memset(&cur_value, 0, sizeof(cur_value));
- foreach_list(node, &this->instructions) {
- vec4_instruction *inst = (vec4_instruction *)node;
-
+ foreach_in_list(vec4_instruction, inst, &instructions) {
/* This pass only works on basic blocks. If there's flow
* control, throw out all our information and start from
* scratch.