summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-18 00:58:38 +0000
committerDan Gohman <gohman@apple.com>2009-07-18 00:58:38 +0000
commitff081b01267e62669543de8cd7d061ceef42627f (patch)
tree32573ff4fd785c9159df392cbf5cd224e7e8976e /llvm/lib
parent0747de6aaaf30ad866df6ec0859f52e7d7e318e9 (diff)
downloadbcm5719-llvm-ff081b01267e62669543de8cd7d061ceef42627f.tar.gz
bcm5719-llvm-ff081b01267e62669543de8cd7d061ceef42627f.zip
Fix this accidentally inverted condition.
llvm-svn: 76278
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Value.cpp b/llvm/lib/VMCore/Value.cpp
index 66fcaf38fba..279eabb0ec4 100644
--- a/llvm/lib/VMCore/Value.cpp
+++ b/llvm/lib/VMCore/Value.cpp
@@ -363,7 +363,7 @@ Value *Value::getUnderlyingObject() {
unsigned MaxLookup = 6;
do {
if (GEPOperator *GEP = dyn_cast<GEPOperator>(V)) {
- if (GEP->hasNoPointerOverflow())
+ if (!GEP->hasNoPointerOverflow())
return V;
V = GEP->getPointerOperand();
} else if (Operator::getOpcode(V) == Instruction::BitCast) {
OpenPOWER on IntegriCloud