From: Reid Spencer Date: Mon, 19 Mar 2007 20:47:50 +0000 (+0000) Subject: Remove a redundant clause in an if statement. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8439bc8d69d687918831927ca34e75497a95c59a;p=oota-llvm.git Remove a redundant clause in an if statement. Patch by Sheng Zhou. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index dc15486556a..38b05b5029e 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -8158,7 +8158,6 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { // Check to see if we are changing the return type... if (OldRetTy != FT->getReturnType()) { if (Callee->isDeclaration() && !Caller->use_empty() && - OldRetTy != FT->getReturnType() && // Conversion is ok if changing from pointer to int of same size. !(isa(FT->getReturnType()) && TD->getIntPtrType() == OldRetTy))