mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-09-08 08:54:58 +00:00
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:
parent
4b1511b027
commit
8fdedc0918
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user