Good catch. Thanks. Reviewed-by: Jose Fonseca <[email protected]>
----- Original Message ----- > Signed-off-by: Vinson Lee <[email protected]> > --- > src/gallium/drivers/llvmpipe/lp_state_setup.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/llvmpipe/lp_state_setup.c > b/src/gallium/drivers/llvmpipe/lp_state_setup.c > index 1d5e50b..469a459 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); > -- > 1.7.11.1 > > _______________________________________________ > mesa-dev mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/mesa-dev > _______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
