diff options
Diffstat (limited to 'src/compiler/nir/nir_deref.c')
-rw-r--r-- | src/compiler/nir/nir_deref.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index d013b423a8b..c8851688f9d 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -294,6 +294,9 @@ nir_compare_deref_paths(nir_deref_path *a_path, nir_deref_instr *a_tail = *(a_p++); nir_deref_instr *b_tail = *(b_p++); + if (a_tail == b_tail) + continue; + switch (a_tail->deref_type) { case nir_deref_type_array: case nir_deref_type_array_wildcard: { |