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 | 8201a9bca038edc5c89270c5d3bc293c4d8f270b (patch) | |
tree | c3d9981531e76bac9488bc10b55a90fdf505d251 /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | cbad11e027745b2037d6ee88b301213a5b70afd5 (diff) | |
download | bcm5719-llvm-8201a9bca038edc5c89270c5d3bc293c4d8f270b.tar.gz bcm5719-llvm-8201a9bca038edc5c89270c5d3bc293c4d8f270b.zip |
fix const correctness, BB is const, so its predecessors are too
llvm-svn: 43780
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 0dad42f8e21..e4a17b77230 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/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) |