summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2017-10-17 13:46:50 -0700
committerEric Anholt <eric@anholt.net>2017-10-23 10:14:40 -0700
commitba85525fcec65e021304a7ecd21e8fd20ce39f2d (patch)
tree918f4e89311d228bcd56419c448889a95ed401df /src/amd
parent34c04c734f6e6b59f11e6cde9cc9038f3335cc29 (diff)
ac: Silence a compiler warning about results[0].
We know that num_components will be > 0, but it doesn't. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c1
1 files changed, 1 insertions, 0 deletions
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[] = {