[llvm-commits] [llvm] r90920 - /llvm/trunk/lib/Analysis/PHITransAddr.cpp

Chris Lattner sabre at nondot.org
Tue Dec 8 17:19:16 PST 2009


Author: lattner
Date: Tue Dec  8 19:19:16 2009
New Revision: 90920

URL: http://llvm.org/viewvc/llvm-project?rev=90920&view=rev
Log:
fix a nasty variable that was shadowing the real CurBB but with the wrong value.

Modified:
    llvm/trunk/lib/Analysis/PHITransAddr.cpp

Modified: llvm/trunk/lib/Analysis/PHITransAddr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/PHITransAddr.cpp?rev=90920&r1=90919&r2=90920&view=diff

==============================================================================
--- llvm/trunk/lib/Analysis/PHITransAddr.cpp (original)
+++ llvm/trunk/lib/Analysis/PHITransAddr.cpp Tue Dec  8 19:19:16 2009
@@ -201,7 +201,6 @@
   // 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);





More information about the llvm-commits mailing list