From 8e982efdc5be9f70911af7bc58b7dcb1d9e0ba40 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 6 Nov 2007 22:07:40 +0000 Subject: [PATCH] fix const correctness, BB is const, so its predecessors are too llvm-svn: 43780 --- lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 0dad42f8e21..e4a17b77230 100644 --- a/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -155,7 +155,7 @@ bool CodeGenPrepare::CanMergeBlocks(const BasicBlock *BB, if (!DestBBPN) return true; // no conflict. // Collect the preds of BB. - SmallPtrSet BBPreds; + SmallPtrSet BBPreds; if (const PHINode *BBPN = dyn_cast(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)