Fix this accidentally inverted condition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76278 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2009-07-18 00:58:38 +00:00
parent 4b1511b027
commit 8fdedc0918

View File

@ -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) {