summaryrefslogtreecommitdiffstats
path: root/lib/Transforms
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-06-17 15:55:30 +0000
committerDuncan Sands <baldrick@free.fr>2008-06-17 15:55:30 +0000
commit34b176a1817418c59cac6dc411788b37d6d28f31 (patch)
tree2e8575677d0a223625157fe13d89beccdcc11bd8 /lib/Transforms
parent69b01e92a29ce6d7e435171aeea3fbc987b81586 (diff)
downloadexternal_llvm-34b176a1817418c59cac6dc411788b37d6d28f31.zip
external_llvm-34b176a1817418c59cac6dc411788b37d6d28f31.tar.gz
external_llvm-34b176a1817418c59cac6dc411788b37d6d28f31.tar.bz2
Fix typo that changed the logic to something wrong.
Spotted by Nick Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 0878008..2338e9c 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -8783,7 +8783,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
// Conversion is ok if changing from one pointer type to another or from
// a pointer to an integer of the same size.
!((isa<PointerType>(OldRetTy) || OldRetTy == TD->getIntPtrType()) &&
- isa<PointerType>(NewRetTy) || NewRetTy == TD->getIntPtrType()))
+ (isa<PointerType>(NewRetTy) || NewRetTy == TD->getIntPtrType())))
return false; // Cannot transform this return value.
if (!Caller->use_empty() &&