summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-05-27 09:25:51 -0700
committerJason Ekstrand <[email protected]>2016-05-27 10:28:27 -0700
commit2fcba404f80c4c83a76dfef03d7cf427ed17415b (patch)
treeae405e9dc4442ef4e08e0cbddb659843639d02a5 /src/compiler/nir
parent9247570d42600fd01a8afbf6ae0bf6c7008e717a (diff)
nir/inline: Don't use foreach_instr_safe unless we need to
Suggested-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/compiler/nir')
-rw-r--r--src/compiler/nir/nir_inline_functions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_inline_functions.c b/src/compiler/nir/nir_inline_functions.c
index 4641e8cc20e..5f9dae40994 100644
--- a/src/compiler/nir/nir_inline_functions.c
+++ b/src/compiler/nir/nir_inline_functions.c
@@ -30,7 +30,7 @@ static bool inline_function_impl(nir_function_impl *impl, struct set *inlined);
static bool
rewrite_param_derefs_block(nir_block *block, nir_call_instr *call)
{
- nir_foreach_instr_safe(instr, block) {
+ nir_foreach_instr(instr, block) {
if (instr->type != nir_instr_type_intrinsic)
continue;
@@ -89,7 +89,7 @@ lower_param_to_local(nir_variable *param, nir_function_impl *impl, bool write)
static bool
lower_params_to_locals_block(nir_block *block, nir_function_impl *impl)
{
- nir_foreach_instr_safe(instr, block) {
+ nir_foreach_instr(instr, block) {
if (instr->type != nir_instr_type_intrinsic)
continue;