diff options
author | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-20 15:41:37 +0000 |
---|---|---|
committer | Andrew Lenharth <andrewl@lenharth.org> | 2006-04-20 15:41:37 +0000 |
commit | 7a31b975fb7b898805833da3840f60aa8f849f00 (patch) | |
tree | c77c3c2a2b7d71dc04f1114cbedb38ed6fd9bd6a /lib/Transforms | |
parent | 8117f9a40e325b5a051ab3d71bfc847c733c054e (diff) | |
download | external_llvm-7a31b975fb7b898805833da3840f60aa8f849f00.zip external_llvm-7a31b975fb7b898805833da3840f60aa8f849f00.tar.gz external_llvm-7a31b975fb7b898805833da3840f60aa8f849f00.tar.bz2 |
Make code match cvs commit message :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 79d7901..1c4bcea 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<PointerType>(FT->getReturnType()) && - OldRetTy->isLosslesslyConvertibleTo(TD->getIntPtrType()))) + TD->getIntPtrType()->isLosslesslyConvertibleTo(OldRetTy))) && !Caller->use_empty()) return false; // Cannot transform this return value... |