Module: Mesa
Branch: master
Commit: 1597176f7090eea73f41b3114ae2a02a50ac7a12
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1597176f7090eea73f41b3114ae2a02a50ac7a12

Author: Vinson Lee <[email protected]>
Date:   Sun Aug 12 00:20:21 2012 -0700

llvmpipe: Silence Coverity incorrect sizeof expression defect.

Signed-off-by: Vinson Lee <[email protected]>
Reviewed-by: José Fonseca <[email protected]>

---

 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 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);

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to