fix a nasty variable that was shadowing the real CurBB but with the wrong value.

llvm-svn: 90920
This commit is contained in:
Chris Lattner 2009-12-09 01:19:16 +00:00
parent 2d412f0cb8
commit 9af9d0f74e
1 changed files with 0 additions and 1 deletions

View File

@ -201,7 +201,6 @@ Value *PHITransAddr::PHITranslateSubExpr(Value *V, BasicBlock *CurBB,
// Handle getelementptr with at least one PHI translatable operand.
if (GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(Inst)) {
SmallVector<Value*, 8> GEPOps;
BasicBlock *CurBB = GEP->getParent();
bool AnyChanged = false;
for (unsigned i = 0, e = GEP->getNumOperands(); i != e; ++i) {
Value *GEPOp = PHITranslateSubExpr(GEP->getOperand(i), CurBB, PredBB);