diff options
author | Chris Lattner <sabre@nondot.org> | 2007-11-06 22:07:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-11-06 22:07:40 +0000 |
commit | e7561904c1908c83c3d2e90d73afc4f03a89a564 (patch) | |
tree | c707dd7d6d8e9742b0c6773584b1f7dbf435ed87 | |
parent | 7a1faa2ed5fbf7b0564eed2b4753cf53ad7938ba (diff) | |
download | external_llvm-e7561904c1908c83c3d2e90d73afc4f03a89a564.zip external_llvm-e7561904c1908c83c3d2e90d73afc4f03a89a564.tar.gz external_llvm-e7561904c1908c83c3d2e90d73afc4f03a89a564.tar.bz2 |
fix const correctness, BB is const, so its predecessors are too
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43780 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp index 0dad42f..e4a17b7 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<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) |