[llvm-bugs] [Bug 46412] New: trunk/clang/lib/CodeGen/CGStmtOpenMP.cpp:2890: strange expression ?

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jun 21 11:13:31 PDT 2020


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

            Bug ID: 46412
           Summary: trunk/clang/lib/CodeGen/CGStmtOpenMP.cpp:2890: strange
                    expression ?
           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: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

trunk/clang/lib/CodeGen/CGStmtOpenMP.cpp:2890:69: style: Same expression on
both sides of '||'. [duplicateExpression]

Source code is

     bool IsMonotonic =
          Ordered ||
          ((ScheduleKind.Schedule == OMPC_SCHEDULE_static ||
            ScheduleKind.Schedule == OMPC_SCHEDULE_unknown) &&
           !(ScheduleKind.M1 == OMPC_SCHEDULE_MODIFIER_nonmonotonic ||
             ScheduleKind.M1 == OMPC_SCHEDULE_MODIFIER_nonmonotonic)) ||
          ScheduleKind.M1 == OMPC_SCHEDULE_MODIFIER_monotonic ||
          ScheduleKind.M2 == OMPC_SCHEDULE_MODIFIER_monotonic;

-- 
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/20200621/37cae657/attachment.html>


More information about the llvm-bugs mailing list