From: Marek Olšák Date: Thu, 23 Feb 2017 00:34:27 +0000 (+0100) Subject: ac: silence a warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c7878b0167bb7e652973c208e172b93c00956a1c;p=mesa.git ac: silence a warning trivial --- 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], "");