diff options
author | Dan Gohman <gohman@apple.com> | 2009-07-18 00:58:38 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-07-18 00:58:38 +0000 |
commit | ff081b01267e62669543de8cd7d061ceef42627f (patch) | |
tree | 32573ff4fd785c9159df392cbf5cd224e7e8976e /llvm/lib | |
parent | 0747de6aaaf30ad866df6ec0859f52e7d7e318e9 (diff) | |
download | bcm5719-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.cpp | 2 |
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) { |