diff options
author | Eric Anholt <[email protected]> | 2017-10-17 13:45:09 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-10-23 10:14:40 -0700 |
commit | 34c04c734f6e6b59f11e6cde9cc9038f3335cc29 (patch) | |
tree | 94edfa81a465df56eb9fe54d4b302899682f6722 /src/amd/common/ac_llvm_build.c | |
parent | 77f7ef0287cee23d411b1a2e750d281efe425ff3 (diff) |
ac: Fix a compiler warning for possibly undefined "name"
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/amd/common/ac_llvm_build.c')
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index e5cd23e0251..4d8f42d572c 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1257,7 +1257,7 @@ LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx, LLVMTypeRef dst_type; LLVMValueRef args[11]; unsigned num_args = 0; - const char *name; + const char *name = NULL; char intr_name[128], type[64]; if (HAVE_LLVM >= 0x0400) { |