[llvm-bugs] [Bug 27286] New: llvm/tools/clang/lib/Parse/ParseOpenMP.cpp:1599]: (style) Redundant condition
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Apr 8 08:53:27 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=27286
Bug ID: 27286
Summary: llvm/tools/clang/lib/Parse/ParseOpenMP.cpp:1599]:
(style) Redundant condition
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
Classification: Unclassified
llvm/tools/clang/lib/Parse/ParseOpenMP.cpp:1599]: (style) Redundant condition:
MapTypeModifierSpecified. '!A || (A && B)' is equivalent to '!A || B'
Source code is
bool IsComma =
((Kind != OMPC_reduction) && (Kind != OMPC_depend) &&
(Kind != OMPC_map)) ||
((Kind == OMPC_reduction) && !InvalidReductionId) ||
((Kind == OMPC_map) && (MapType != OMPC_MAP_unknown) &&
(!MapTypeModifierSpecified ||
(MapTypeModifierSpecified && MapTypeModifier == OMPC_MAP_always))) ||
((Kind == OMPC_depend) && DepKind != OMPC_DEPEND_unknown);
--
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/20160408/fd4871e7/attachment.html>
More information about the llvm-bugs
mailing list