https://llvm.org/bugs/show_bug.cgi?id=27287
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: unassignedb...@nondot.org Reporter: dcb...@hotmail.com CC: llvm-bugs@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.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs