From 8fdedc0918229cfa887b82f8e0316a52ae1b0228 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Sat, 18 Jul 2009 00:58:38 +0000 Subject: [PATCH] Fix this accidentally inverted condition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76278 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Value.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.34.1