[llvm-bugs] [Bug 32502] New: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1664: limits check in wrong place ?

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 3 08:03:34 PDT 2017


http://bugs.llvm.org/show_bug.cgi?id=32502

            Bug ID: 32502
           Summary: lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1664: limits
                    check in wrong place ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org

trunk/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:1664]: (style) Array index
'OrigOpNumber' is used before limits check.

Source code is

     while (Ops[OrigOpNumber].getNode() != Op && OrigOpNumber < Ops.size())
        OrigOpNumber++;

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170403/9a6ec2ee/attachment-0001.html>


More information about the llvm-bugs mailing list