From: Chris Lattner Date: Wed, 9 Dec 2009 01:19:16 +0000 (+0000) Subject: fix a nasty variable that was shadowing the real CurBB but with the wrong value. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d632988eea4dcda2c81fc3600b82f405f00707a6;p=oota-llvm.git 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 --- diff --git a/lib/Analysis/PHITransAddr.cpp b/lib/Analysis/PHITransAddr.cpp index 8ced4b6d29b..bea88326cca 100644 --- a/lib/Analysis/PHITransAddr.cpp +++ b/lib/Analysis/PHITransAddr.cpp @@ -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(Inst)) { SmallVector 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);