fix a nasty variable that was shadowing the real CurBB but with the wrong value.
authorChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 01:19:16 +0000 (01:19 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 9 Dec 2009 01:19:16 +0000 (01:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90920 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/PHITransAddr.cpp

index 8ced4b6d29b384c36a4b160d827cf89576290fe0..bea88326cca259768fb1ab8ac79bdaa27535457b 100644 (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);