nir: only dereference undef after NULL check. (v2)
authorDave Airlie <airlied@redhat.com>
Sun, 17 Apr 2016 20:56:06 +0000 (06:56 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 17 Apr 2016 21:37:48 +0000 (07:37 +1000)
commitb3616f13268ac3d4202b175de087bdad2e592173
tree3c6c4aee7852dfca50d0d6676f1aa2ee5e232626
parent96b4cfe8342d0c838b1e6cfdb383dc0294648253
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 <airlied@redhat.com>
src/compiler/nir/nir_builder.h