<div dir="ltr">R-B<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 18, 2016 at 8:54 AM, Rob Clark <span dir="ltr"><<a href="mailto:robdclark@gmail.com" target="_blank">robdclark@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Rob Clark <<a href="mailto:robclark@freedesktop.org">robclark@freedesktop.org</a>><br>
<br>
CID 1265536 (#1 of 2): Explicit null dereferenced (FORWARD_NULL)6.<br>
var_deref_op: Dereferencing null pointer parent.<br>
---<br>
src/compiler/nir/nir_validate.c | 1 +<br>
1 file changed, 1 insertion(+)<br>
<br>
diff --git a/src/compiler/nir/nir_validate.c b/src/compiler/nir/nir_validate.c<br>
index b186fd5..fa51e3c 100644<br>
--- a/src/compiler/nir/nir_validate.c<br>
+++ b/src/compiler/nir/nir_validate.c<br>
@@ -376,6 +376,7 @@ validate_deref_chain(nir_deref *deref, validate_state *state)<br>
break;<br>
<br>
case nir_deref_type_struct:<br>
+ assume(parent); /* cannot happen: deref change starts w/ nir_deref_var */<br>
validate_assert(state, deref->type ==<br>
glsl_get_struct_field(parent->type,<br>
nir_deref_as_struct(deref)->index));<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.5.5<br>
<br>
</font></span></blockquote></div><br></div>