From c7878b0167bb7e652973c208e172b93c00956a1c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 23 Feb 2017 01:34:27 +0100 Subject: [PATCH] ac: silence a warning trivial --- src/amd/common/ac_llvm_build.c | 3 +-- 1 file changed, 1 insertion(+), 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], ""); -- 2.30.2