Remove a redundant clause in an if statement.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 19 Mar 2007 20:47:50 +0000 (20:47 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 19 Mar 2007 20:47:50 +0000 (20:47 +0000)
Patch by Sheng Zhou.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35184 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index dc15486556af84f32a69e6aad86003ccea000fbc..38b05b5029e8cc358c613c2be7b756adcccdbe88 100644 (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))