[llvm-bugs] [Bug 27287] New: llvm/tools/clang/lib/Sema/SemaOverload.cpp:1828]: (style) Redundant condition

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Apr 8 08:55:47 PDT 2016


            Bug ID: 27287
           Summary: llvm/tools/clang/lib/Sema/SemaOverload.cpp:1828]:
                    (style) Redundant condition
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: dcb314 at hotmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

llvm/tools/clang/lib/Sema/SemaOverload.cpp:1828]: (style) Redundant condition:
!FromType.isSignedIntegerType(). 'A || (!A && B)' is equivalent to 'A || B'

Source code is

    if (// We can promote any signed, promotable integer type to an int
        (FromType->isSignedIntegerType() ||
         // We can promote any unsigned integer type whose size is
         // less than int to an int.
         (!FromType->isSignedIntegerType() &&
          Context.getTypeSize(FromType) < Context.getTypeSize(ToType)))) {

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/20160408/bc257f2c/attachment-0001.html>

More information about the llvm-bugs mailing list