ac/nir: Fix compiler warning about uninitialized dw_addr.
authorEric Anholt <eric@anholt.net>
Sat, 10 Feb 2018 10:37:37 +0000 (10:37 +0000)
committerEric Anholt <eric@anholt.net>
Mon, 12 Feb 2018 20:48:29 +0000 (20:48 +0000)
commit091bff831721b62243840038f505af0abd9436c1
tree56e9ba31abd9d76a6f6f5fc2ca8b96bc6fa808d7
parent7a83be4b28953c9dfc609ad084f57e671310661a
ac/nir: Fix compiler warning about uninitialized dw_addr.

Even switching the def's condition to be the same chip revision check as
the use, the compiler doesn't figure it out.  Just NULL-init it.

Fixes: ec53e527421d ("ac/nir: Add ES output to LDS for GFX9.")
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c