From 1597176f7090eea73f41b3114ae2a02a50ac7a12 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 12 Aug 2012 00:20:21 -0700 Subject: [PATCH] llvmpipe: Silence Coverity incorrect sizeof expression defect. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- 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 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); -- 2.30.2