diff options
author | Marek Olšák <[email protected]> | 2017-02-23 01:34:27 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-02-25 00:16:38 +0100 |
commit | c7878b0167bb7e652973c208e172b93c00956a1c (patch) | |
tree | 5f08bf96dc8c5ba4a3d8946943dd0c25588c8cac | |
parent | 35915af6c9ab4bdc0f1f8584ca346602405bd7e4 (diff) |
ac: silence a warning
trivial
-rw-r--r-- | src/amd/common/ac_llvm_build.c | 3 |
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], ""); |