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>
This commit is contained in:
parent
34c04c734f
commit
ba85525fce
|
@ -2541,6 +2541,7 @@ static LLVMValueRef visit_load_buffer(struct ac_nir_context *ctx,
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assume(results[0]);
|
||||||
LLVMValueRef ret = results[0];
|
LLVMValueRef ret = results[0];
|
||||||
if (num_components > 4 || num_components == 3) {
|
if (num_components > 4 || num_components == 3) {
|
||||||
LLVMValueRef masks[] = {
|
LLVMValueRef masks[] = {
|
||||||
|
|
Loading…
Reference in New Issue