diff options
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_state_setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c b/src/gallium/drivers/llvmpipe/lp_state_setup.c index 1d5e50be9b7..469a4595556 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_setup.c +++ b/src/gallium/drivers/llvmpipe/lp_state_setup.c @@ -585,7 +585,7 @@ set_noalias(LLVMBuilderRef builder, int nr_args) { int i; - for(i = 0; i < Elements(arg_types); ++i) + for(i = 0; i < nr_args; ++i) if(LLVMGetTypeKind(arg_types[i]) == LLVMPointerTypeKind) LLVMAddAttribute(LLVMGetParam(function, i), LLVMNoAliasAttribute); |