[llvm-bugs] [Bug 51216] warn about bitwise instead of logical and
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Oct 4 05:42:27 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=51216
David Bolvansky <david.bolvansky at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
Fixed By Commit(s)| |rGf62d18ff140f67a8776a7a3c6
| |2a75645d8d540b5
CC| |david.bolvansky at gmail.com
--- Comment #1 from David Bolvansky <david.bolvansky at gmail.com> ---
<source>:4:7: warning: use of bitwise '&' with boolean operands
[-Wbitwise-instead-of-logical]
if (foo() & bar())
^~~~~~~~~~~~~
&&
<source>:4:7: note: cast one or both operands to int to silence this warning
1 warning generated.
--
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/20211004/1b10e3e0/attachment.html>
More information about the llvm-bugs
mailing list