From 7a31b975fb7b898805833da3840f60aa8f849f00 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 :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27881 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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...