[llvm-bugs] [Bug 31459] New: llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:272: possible &/&&/|/|| mixup ?
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Dec 23 00:22:11 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31459
Bug ID: 31459
Summary: llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:272:
possible &/&&/|/|| mixup ?
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
Classification: Unclassified
>From a recent build of llvm trunk
llvm/lib/Analysis/ModuleSummaryAnalysis.cpp:272:48: warning: enum constant in
boolean context [-Wint-in-bool-context]
Source code is
if (Flags & (object::BasicSymbolRef::SF_Weak ||
object::BasicSymbolRef::SF_Global))
return;
Best guess is that
if (Flags && (object::BasicSymbolRef::SF_Weak ||
object::BasicSymbolRef::SF_Global))
return;
was intended.
--
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/20161223/ca18579c/attachment.html>
More information about the llvm-bugs
mailing list