From ba85525fcec65e021304a7ecd21e8fd20ce39f2d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 17 Oct 2017 13:46:50 -0700 Subject: [PATCH] ac: Silence a compiler warning about results[0]. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We know that num_components will be > 0, but it doesn't. Reviewed-by: Nicolai Hähnle --- src/amd/common/ac_nir_to_llvm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index 2ddc748b5be..2e50e50b129 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -2541,6 +2541,7 @@ static LLVMValueRef visit_load_buffer(struct ac_nir_context *ctx, } + assume(results[0]); LLVMValueRef ret = results[0]; if (num_components > 4 || num_components == 3) { LLVMValueRef masks[] = { -- 2.30.2