Fix typo that changed the logic to something wrong.
authorDuncan Sands <baldrick@free.fr>
Tue, 17 Jun 2008 15:55:30 +0000 (15:55 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 17 Jun 2008 15:55:30 +0000 (15:55 +0000)
Spotted by Nick Lewycky.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52411 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 0878008d719e593c2b7e31f1465165070c538763..2338e9c31a487fdbf0c0f536514cf7fc227e97eb 100644 (file)
@@ -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() &&