forked from OSchip/llvm-project
Remove a redundant clause in an if statement.
Patch by Sheng Zhou. llvm-svn: 35184
This commit is contained in:
parent
a7bed60ab3
commit
03c31d5bb0
|
@ -8158,7 +8158,6 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||||
// Check to see if we are changing the return type...
|
// Check to see if we are changing the return type...
|
||||||
if (OldRetTy != FT->getReturnType()) {
|
if (OldRetTy != FT->getReturnType()) {
|
||||||
if (Callee->isDeclaration() && !Caller->use_empty() &&
|
if (Callee->isDeclaration() && !Caller->use_empty() &&
|
||||||
OldRetTy != FT->getReturnType() &&
|
|
||||||
// Conversion is ok if changing from pointer to int of same size.
|
// Conversion is ok if changing from pointer to int of same size.
|
||||||
!(isa<PointerType>(FT->getReturnType()) &&
|
!(isa<PointerType>(FT->getReturnType()) &&
|
||||||
TD->getIntPtrType() == OldRetTy))
|
TD->getIntPtrType() == OldRetTy))
|
||||||
|
|
Loading…
Reference in New Issue