ac: silence a warning
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Feb 2017 00:34:27 +0000 (01:34 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 24 Feb 2017 23:16:38 +0000 (00:16 +0100)
trivial

src/amd/common/ac_llvm_build.c

index 2f25b1400e8732ebe3048e9f877ec9fca73292d5..a70984e3e9b93a67ed1d0695a51bf43940879f88 100644 (file)
@@ -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], "");