mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 19:50:11 +01:00
ac: Fix a compiler warning for possibly undefined "name"
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
77f7ef0287
commit
34c04c734f
1 changed files with 1 additions and 1 deletions
|
|
@ -1257,7 +1257,7 @@ LLVMValueRef ac_build_image_opcode(struct ac_llvm_context *ctx,
|
||||||
LLVMTypeRef dst_type;
|
LLVMTypeRef dst_type;
|
||||||
LLVMValueRef args[11];
|
LLVMValueRef args[11];
|
||||||
unsigned num_args = 0;
|
unsigned num_args = 0;
|
||||||
const char *name;
|
const char *name = NULL;
|
||||||
char intr_name[128], type[64];
|
char intr_name[128], type[64];
|
||||||
|
|
||||||
if (HAVE_LLVM >= 0x0400) {
|
if (HAVE_LLVM >= 0x0400) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue