summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir_vec_index_to_swizzle.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-07-19 21:44:03 -0700
committerKenneth Graunke <[email protected]>2010-07-21 16:37:57 -0700
commitc7a18da69022d3f9b05c21ff2473e8ea390f77f1 (patch)
tree573f255e2bdf860a51dd6f9398547ffb45fef822 /src/glsl/ir_vec_index_to_swizzle.cpp
parentd5be2acae379783c4aa31243e0a88a9e67e6ca7e (diff)
glsl2: Replace insert_before/remove pairs with exec_node::replace_with.
Diffstat (limited to 'src/glsl/ir_vec_index_to_swizzle.cpp')
-rw-r--r--src/glsl/ir_vec_index_to_swizzle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/glsl/ir_vec_index_to_swizzle.cpp b/src/glsl/ir_vec_index_to_swizzle.cpp
index abeb43cd68e..1e170cbae61 100644
--- a/src/glsl/ir_vec_index_to_swizzle.cpp
+++ b/src/glsl/ir_vec_index_to_swizzle.cpp
@@ -121,8 +121,7 @@ ir_vec_index_to_swizzle_visitor::visit_enter(ir_call *ir)
ir_rvalue *new_param = convert_vec_index_to_swizzle(param);
if (new_param != param) {
- param->insert_before(new_param);
- param->remove();
+ param->replace_with(new_param);
}
}