[llvm-bugs] [Bug 47071] New: Bit-wise operators should not be used where logical operators should be used. ( | should be ||)(llvm-project/clang/lib/Parse/ParseStmtAsm.cpp:line 584)

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 9 19:49:10 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=47071

            Bug ID: 47071
           Summary: Bit-wise operators should not be used where logical
                    operators should be used. ( | should be
                    ||)(llvm-project/clang/lib/Parse/ParseStmtAsm.cpp:line
                    584)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: libclang
          Assignee: unassignedclangbugs at nondot.org
          Reporter: info at ustchcs.com
                CC: klimek at google.com, llvm-bugs at lists.llvm.org,
                    richard-llvm at metafoo.co.uk

Bit-wise operators should not be used where logical operators should be used. (
| should be ||)

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/clang/lib/Parse/ParseStmtAsm.cpp:line 584

   584    if (!MAI || !MII | !MOFI || !STI) {
   585      Diag(AsmLoc, diag::err_msasm_unable_to_create_target)
   586          << "target MC unavailable";
   587      return EmptyStmt();
   588    }

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-5.2: Bit-wise operators should not be used where logical operators
should be used. ( | should be ||))

-- 
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/20200810/cba20944/attachment.html>


More information about the llvm-bugs mailing list