summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-08-12 00:20:21 -0700
committerVinson Lee <[email protected]>2012-08-15 22:15:49 -0700
commit1597176f7090eea73f41b3114ae2a02a50ac7a12 (patch)
tree9dfffdf80bfdd3f43e856baa7d861acfddd17dcb /src
parent3d6892c4793ae1fd1ef82d40e4af8004393b0480 (diff)
llvmpipe: Silence Coverity incorrect sizeof expression defect.
Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_setup.c2
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);