[llvm-bugs] [Bug 27470] New: llvm/lib/IR/LLVMContextImpl.h:602: pointless duplication ?

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 22 01:42:26 PDT 2016


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

            Bug ID: 27470
           Summary: llvm/lib/IR/LLVMContextImpl.h:602: pointless
                    duplication ?
           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

[trunk/llvm/lib/IR/LLVMContextImpl.h:602]: (style) Same expression on both
sides of '||'.

Source code is

   if (IsDefinition || !Scope || !LinkageName || !Scope ||
        !isa<MDString>(Scope))

Maybe better code

   if (IsDefinition || !Scope || !LinkageName || 
        !isa<MDString>(Scope))

-- 
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/20160422/d9212a69/attachment.html>


More information about the llvm-bugs mailing list