summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-19 20:47:50 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-19 20:47:50 +0000
commit03c31d5bb0af5db22c94097a06c0f3a06a3bda9d (patch)
tree443e818b1b533353419e8b16f486cd672a655c23 /llvm/lib/Transforms
parenta7bed60ab30af9ebbcadad58b80378fe54544258 (diff)
downloadbcm5719-llvm-03c31d5bb0af5db22c94097a06c0f3a06a3bda9d.tar.gz
bcm5719-llvm-03c31d5bb0af5db22c94097a06c0f3a06a3bda9d.zip
Remove a redundant clause in an if statement.
Patch by Sheng Zhou. llvm-svn: 35184
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index dc15486556a..38b05b5029e 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/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<PointerType>(FT->getReturnType()) &&
TD->getIntPtrType() == OldRetTy))
OpenPOWER on IntegriCloud