[llvm-bugs] [Bug 34465] New: llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:100: dead code ?

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Sep 4 12:38:10 PDT 2017


            Bug ID: 34465
           Summary: llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp
                    :100: dead code ?
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org

llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:100]: (warning) Opposite
inner 'if' condition leads to a dead code block.

Source code is

  for (CallEvent::param_type_iterator I = param_type_begin(),
                                      E = param_type_end();
       I != E && Idx < NumOfArgs; ++I, ++Idx) {
    if (NumOfArgs <= Idx)

Suggest delete if condition.

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/20170904/7bf1088b/attachment.html>

More information about the llvm-bugs mailing list