From 34b176a1817418c59cac6dc411788b37d6d28f31 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 17 Jun 2008 15:55:30 +0000 Subject: [PATCH] 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 --- 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 0878008d719..2338e9c31a4 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(OldRetTy) || OldRetTy == TD->getIntPtrType()) && - isa(NewRetTy) || NewRetTy == TD->getIntPtrType())) + (isa(NewRetTy) || NewRetTy == TD->getIntPtrType()))) return false; // Cannot transform this return value. if (!Caller->use_empty() && -- 2.34.1