[llvm-bugs] [Bug 34467] New: llvm/tools/clang/lib/StaticAnalyzer/Core/CallEvent.cpp:100: dead code ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Sep 4 13:02:52 PDT 2017
https://bugs.llvm.org/show_bug.cgi?id=34467
Bug ID: 34467
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)
break;
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/c7d02cc7/attachment.html>
More information about the llvm-bugs
mailing list