summaryrefslogtreecommitdiff
path: root/lib/Analysis/InstructionSimplify.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2013-01-31 00:32:11 +0000
committerDan Gohman <dan433584@gmail.com>2013-01-31 00:32:11 +0000
commit5f1686f0b0c38b8b9482fbfec21bf5138c27bd0a (patch)
tree69a750077094f48466750d12fcdfb6b6f78eb6f4 /lib/Analysis/InstructionSimplify.cpp
parent73dee180c836270644dfa7d90f9c5ba877567999 (diff)
downloadllvm-5f1686f0b0c38b8b9482fbfec21bf5138c27bd0a.tar.gz
llvm-5f1686f0b0c38b8b9482fbfec21bf5138c27bd0a.tar.bz2
llvm-5f1686f0b0c38b8b9482fbfec21bf5138c27bd0a.tar.xz
Minor code simplification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174005 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/InstructionSimplify.cpp')
-rw-r--r--lib/Analysis/InstructionSimplify.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/InstructionSimplify.cpp b/lib/Analysis/InstructionSimplify.cpp
index bc51457406..9f2aa59863 100644
--- a/lib/Analysis/InstructionSimplify.cpp
+++ b/lib/Analysis/InstructionSimplify.cpp
@@ -2459,7 +2459,7 @@ static Value *SimplifyICmpInst(unsigned Predicate, Value *LHS, Value *RHS,
// Simplify comparisons of related pointers using a powerful, recursive
// GEP-walk when we have target data available..
- if (Q.TD && LHS->getType()->isPointerTy() && RHS->getType()->isPointerTy())
+ if (Q.TD && LHS->getType()->isPointerTy())
if (Constant *C = computePointerICmp(*Q.TD, Pred, LHS, RHS))
return C;