From: Dan Gohman Date: Sat, 18 Jul 2009 00:58:38 +0000 (+0000) Subject: Fix this accidentally inverted condition. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8fdedc0918229cfa887b82f8e0316a52ae1b0228;p=oota-llvm.git Fix this accidentally inverted condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76278 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/VMCore/Value.cpp b/lib/VMCore/Value.cpp index 66fcaf38fba..279eabb0ec4 100644 --- a/lib/VMCore/Value.cpp +++ b/lib/VMCore/Value.cpp @@ -363,7 +363,7 @@ Value *Value::getUnderlyingObject() { unsigned MaxLookup = 6; do { if (GEPOperator *GEP = dyn_cast(V)) { - if (GEP->hasNoPointerOverflow()) + if (!GEP->hasNoPointerOverflow()) return V; V = GEP->getPointerOperand(); } else if (Operator::getOpcode(V) == Instruction::BitCast) {