From f89e630b2f23869294411e3c63b5648055934dce Mon Sep 17 00:00:00 2001 From: Andrew Lenharth Date: Thu, 20 Apr 2006 15:41:37 +0000 Subject: [PATCH] Make code match cvs commit message :) llvm-svn: 27881 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 79d79011f4b1..1c4bceaef40d 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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... -- GitLab