summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_builder.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2016-04-18 06:56:06 +1000
committerDave Airlie <[email protected]>2016-04-18 07:37:48 +1000
commitb3616f13268ac3d4202b175de087bdad2e592173 (patch)
tree3c6c4aee7852dfca50d0d6676f1aa2ee5e232626 /src/compiler/nir/nir_builder.h
parent96b4cfe8342d0c838b1e6cfdb383dc0294648253 (diff)
nir: only dereference undef after NULL check. (v2)
Pointed out by coverity. v2: nuke line, Jason pointed out the constructor does it. Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_builder.h')
-rw-r--r--src/compiler/nir/nir_builder.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h
index 29b13fb222f..35d65b4a5cf 100644
--- a/src/compiler/nir/nir_builder.h
+++ b/src/compiler/nir/nir_builder.h
@@ -79,7 +79,6 @@ nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size)
{
nir_ssa_undef_instr *undef =
nir_ssa_undef_instr_create(build->shader, num_components, bit_size);
- undef->def.bit_size = bit_size;
if (!undef)
return NULL;