summaryrefslogtreecommitdiffstats
path: root/src/compiler
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <[email protected]>2016-05-04 05:48:39 +0200
committerEduardo Lima Mitev <[email protected]>2016-05-05 09:33:02 +0200
commit8698194313f91a3aaec2ad84c4ea5a4892cf5f1a (patch)
tree223307905f147d8e4a67fdb6fddcdc9da01efe9e /src/compiler
parentbe5010c4b8635d0292404ac58ed0436ba6637579 (diff)
nir: fix assert for wildcard pairs
The assert was null checking dest_arr_parent twice. The intention seems to be to check both dest_ and src_. Added in d3636da9 Reviewed-by: Eduardo Lima Mitev <[email protected]>
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/nir/nir_lower_var_copies.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_lower_var_copies.c b/src/compiler/nir/nir_lower_var_copies.c
index 707d5af03ee..1a7e2ee78e1 100644
--- a/src/compiler/nir/nir_lower_var_copies.c
+++ b/src/compiler/nir/nir_lower_var_copies.c
@@ -85,7 +85,7 @@ emit_copy_load_store(nir_intrinsic_instr *copy_instr,
if (src_arr_parent || dest_arr_parent) {
/* Wildcards had better come in matched pairs */
- assert(dest_arr_parent && dest_arr_parent);
+ assert(src_arr_parent && dest_arr_parent);
nir_deref_array *src_arr = nir_deref_as_array(src_arr_parent->child);
nir_deref_array *dest_arr = nir_deref_as_array(dest_arr_parent->child);