summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/amd/common/ac_llvm_build.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c
index 2f25b1400e8..a70984e3e9b 100644
--- a/src/amd/common/ac_llvm_build.c
+++ b/src/amd/common/ac_llvm_build.c
@@ -119,10 +119,9 @@ ac_build_gather_values_extended(struct ac_llvm_context *ctx,
bool load)
{
LLVMBuilderRef builder = ctx->builder;
- LLVMValueRef vec;
+ LLVMValueRef vec = NULL;
unsigned i;
-
if (value_count == 1) {
if (load)
return LLVMBuildLoad(builder, values[0], "");