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

            Bug ID: 45532
           Summary: flang/lib/Semantics/check-declarations.cpp: 2 *
                    strange use of bitwise operator
           Product: flang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Fortran IR
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]

1.

flang/lib/Semantics/check-declarations.cpp:860:66: style: Boolean result is
used in bitwise operation. Clarify expression with parentheses.
[clarifyCondition]

Source code is

  } else if (!CheckDefinedOperatorArg(opName, specific, proc, 0) |
      !CheckDefinedOperatorArg(opName, specific, proc, 1)) {

Maybe better code

  } else if (!CheckDefinedOperatorArg(opName, specific, proc, 0) ||
      !CheckDefinedOperatorArg(opName, specific, proc, 1)) {

2.

flang/lib/Semantics/check-declarations.cpp:950:78: style: Boolean result is
used in bitwise operation. Clarify expression with parentheses.
[clarifyCondition]

Duplicate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to