Make code match cvs commit message :)
authorAndrew Lenharth <andrewl@lenharth.org>
Thu, 20 Apr 2006 15:41:37 +0000 (15:41 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Thu, 20 Apr 2006 15:41:37 +0000 (15:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27881 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 79d79011f4b1c53a0a727a717b880fdc88421019..1c4bceaef40dfbf87c503854786e68763bb25d3a 100644 (file)
@@ -5683,7 +5683,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
     if (Callee->isExternal() &&
         !(OldRetTy->isLosslesslyConvertibleTo(FT->getReturnType()) ||
           (isa<PointerType>(FT->getReturnType()) && 
-           OldRetTy->isLosslesslyConvertibleTo(TD->getIntPtrType())))
+           TD->getIntPtrType()->isLosslesslyConvertibleTo(OldRetTy)))
         && !Caller->use_empty())
       return false;   // Cannot transform this return value...