diff options
-rw-r--r-- | src/compiler/nir/nir_validate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c index d0c9be2d8a9..60af71550ba 100644 --- a/src/compiler/nir/nir_validate.c +++ b/src/compiler/nir/nir_validate.c @@ -173,6 +173,9 @@ validate_ssa_src(nir_src *src, validate_state *state) validate_assert(state, entry); + if (!entry) + return; + ssa_def_validate_state *def_state = (ssa_def_validate_state *)entry->data; validate_assert(state, def_state->where_defined == state->impl && |