diff options
author | Jason Ekstrand <[email protected]> | 2015-02-04 21:38:28 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-02-19 17:06:17 -0800 |
commit | 902b0ccc9a5266955d104dc7652ac00e66081f95 (patch) | |
tree | 3a6dfa42a6990e99657b3549e38ee310cc6bdc3a /docs/extensions.html | |
parent | 0281fd07865e6ff5c85032b403a073b50659c1ac (diff) |
nir/from_ssa: Don't try to read an invalid instruction
Right now, the nir_instr_prev function function blindly looks up the
previous element in the exec list and casts it to an instruction even if
it's the tail sentinel. The next commit will change this to return null if
it's the first instruction. Making this change first avoids getting a
segfault between commits. The only reason we never noticed is that, thanks
to the way things are laid out in nir_block, the casted instruction's type
was never parallal_copy.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'docs/extensions.html')
0 files changed, 0 insertions, 0 deletions