[llvm-commits] [llvm] r43780 - /llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

Chris Lattner sabre at nondot.org
Tue Nov 6 14:07:40 PST 2007


Author: lattner
Date: Tue Nov  6 16:07:40 2007
New Revision: 43780

URL: http://llvm.org/viewvc/llvm-project?rev=43780&view=rev
Log:
fix const correctness, BB is const, so its predecessors are too

Modified:
    llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp?rev=43780&r1=43779&r2=43780&view=diff

==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/CodeGenPrepare.cpp Tue Nov  6 16:07:40 2007
@@ -155,7 +155,7 @@
   if (!DestBBPN) return true;  // no conflict.
   
   // Collect the preds of BB.
-  SmallPtrSet<BasicBlock*, 16> BBPreds;
+  SmallPtrSet<const BasicBlock*, 16> BBPreds;
   if (const PHINode *BBPN = dyn_cast<PHINode>(BB->begin())) {
     // It is faster to get preds from a PHI than with pred_iterator.
     for (unsigned i = 0, e = BBPN->getNumIncomingValues(); i != e; ++i)





More information about the llvm-commits mailing list