mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-04 03:17:51 +00:00
Remove a redundant clause in an if statement.
Patch by Sheng Zhou. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35184 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
49d273e168
commit
8439bc8d69
@ -8158,7 +8158,6 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||
// Check to see if we are changing the return type...
|
||||
if (OldRetTy != FT->getReturnType()) {
|
||||
if (Callee->isDeclaration() && !Caller->use_empty() &&
|
||||
OldRetTy != FT->getReturnType() &&
|
||||
// Conversion is ok if changing from pointer to int of same size.
|
||||
!(isa<PointerType>(FT->getReturnType()) &&
|
||||
TD->getIntPtrType() == OldRetTy))
|
||||
|
Loading…
x
Reference in New Issue
Block a user