diff options
author | Eric Anholt <[email protected]> | 2018-02-10 10:37:37 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-02-12 20:48:29 +0000 |
commit | 091bff831721b62243840038f505af0abd9436c1 (patch) | |
tree | 56e9ba31abd9d76a6f6f5fc2ca8b96bc6fa808d7 /src/amd | |
parent | 7a83be4b28953c9dfc609ad084f57e671310661a (diff) |
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 <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index d04e24f6001..477b98b0d9b 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -6088,7 +6088,7 @@ handle_es_outputs_post(struct nir_to_llvm_context *ctx, } for (unsigned i = 0; i < RADEON_LLVM_MAX_OUTPUTS; ++i) { - LLVMValueRef dw_addr; + LLVMValueRef dw_addr = NULL; LLVMValueRef *out_ptr = &ctx->nir->outputs[i * 4]; int param_index; int length = 4; |