[llvm-commits] [llvm] r76278 - /llvm/trunk/lib/VMCore/Value.cpp
Dan Gohman
gohman at apple.com
Fri Jul 17 17:58:39 PDT 2009
Author: djg
Date: Fri Jul 17 19:58:38 2009
New Revision: 76278
URL: http://llvm.org/viewvc/llvm-project?rev=76278&view=rev
Log:
Fix this accidentally inverted condition.
Modified:
llvm/trunk/lib/VMCore/Value.cpp
Modified: llvm/trunk/lib/VMCore/Value.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Value.cpp?rev=76278&r1=76277&r2=76278&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Value.cpp (original)
+++ llvm/trunk/lib/VMCore/Value.cpp Fri Jul 17 19:58:38 2009
@@ -363,7 +363,7 @@
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) {
More information about the llvm-commits
mailing list