From: Vinson Lee Date: Sun, 12 Aug 2012 07:20:21 +0000 (-0700) Subject: llvmpipe: Silence Coverity incorrect sizeof expression defect. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1597176f7090eea73f41b3114ae2a02a50ac7a12;p=mesa.git llvmpipe: Silence Coverity incorrect sizeof expression defect. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- 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);