mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
gallivm: Move loop var declaration to beginning of scope.
This commit is contained in:
parent
f64fe7d333
commit
7d1f414103
1 changed files with 3 additions and 1 deletions
|
|
@ -182,9 +182,11 @@ lp_build_print_uvec16(struct gallivm_state *gallivm,
|
|||
LLVMBuilderRef builder = gallivm->builder;
|
||||
char format[1000];
|
||||
LLVMValueRef args[16];
|
||||
int i;
|
||||
|
||||
for(int i = 0; i < 16; ++i)
|
||||
for (i = 0; i < 16; ++i) {
|
||||
args[i] = LLVMBuildExtractElement(builder, vec, lp_build_const_int32(gallivm, i), "");
|
||||
}
|
||||
|
||||
util_snprintf(format, sizeof(format), "%s %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u %%u\n", msg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue