Remove a redundant clause in an if statement.

Patch by Sheng Zhou.

llvm-svn: 35184
This commit is contained in:
Reid Spencer 2007-03-19 20:47:50 +00:00
parent a7bed60ab3
commit 03c31d5bb0
1 changed files with 0 additions and 1 deletions

View File

@ -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))