mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
fix a nasty variable that was shadowing the real CurBB but with the wrong value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90920 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
de2ace1758
commit
d632988eea
@ -201,7 +201,6 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
|
|||||||
// Handle getelementptr with at least one PHI translatable operand.
|
// Handle getelementptr with at least one PHI translatable operand.
|
||||||
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
|
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
|
||||||
SmallVector<Value*, 8> GEPOps;
|
SmallVector<Value*, 8> GEPOps;
|
||||||
BasicBlock *CurBB = GEP->getParent();
|
|
||||||
bool AnyChanged = false;
|
bool AnyChanged = false;
|
||||||
for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) {
|
||||||
Value *GEPOp = PHITranslateSubExpr(GEP->getOperand(i), CurBB, PredBB);
|
Value *GEPOp = PHITranslateSubExpr(GEP->getOperand(i), CurBB, PredBB);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user