projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6390ae0
)
fix const correctness, BB is const, so its predecessors are too
author
Chris Lattner
<sabre@nondot.org>
Tue, 6 Nov 2007 22:07:40 +0000
(22:07 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 6 Nov 2007 22:07:40 +0000
(22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43780
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/CodeGenPrepare.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/CodeGenPrepare.cpp
b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 0dad42f8e21dfb8aadb3010c4e7797593e05e4b3..e4a17b77230472c0fe38ddb9fe30f38f2f7a5b35 100644
(file)
--- 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)