From: Andrew Lenharth Date: Thu, 20 Apr 2006 15:41:37 +0000 (+0000) Subject: Make code match cvs commit message :) X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=7a31b975fb7b898805833da3840f60aa8f849f00;p=oota-llvm.git Make code match cvs commit message :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27881 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 79d79011f4b..1c4bceaef40 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5683,7 +5683,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { if (Callee->isExternal() && !(OldRetTy->isLosslesslyConvertibleTo(FT->getReturnType()) || (isa(FT->getReturnType()) && - OldRetTy->isLosslesslyConvertibleTo(TD->getIntPtrType()))) + TD->getIntPtrType()->isLosslesslyConvertibleTo(OldRetTy))) && !Caller->use_empty()) return false; // Cannot transform this return value...