projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove ResourcePriorityQueue::dump as it relies on copying a non-copyable type which...
[oota-llvm.git]
/
tools
/
llvm-diff
/
DifferenceEngine.cpp
diff --git
a/tools/llvm-diff/DifferenceEngine.cpp
b/tools/llvm-diff/DifferenceEngine.cpp
index f8e957fa506f042b36d313ffd1386af3b1dee751..7d379ef5dc41cf7048da7ec15cde97220e4dc051 100644
(file)
--- a/
tools/llvm-diff/DifferenceEngine.cpp
+++ b/
tools/llvm-diff/DifferenceEngine.cpp
@@
-125,8
+125,8
@@
class FunctionDifferenceEngine {
unsigned getUnprocPredCount(BasicBlock *Block) const {
unsigned Count = 0;
unsigned getUnprocPredCount(BasicBlock *Block) const {
unsigned Count = 0;
- for (
BasicBlock *Pred : predecessors(Block)
)
- if (!Blocks.count(
Pred
)) Count++;
+ for (
pred_iterator I = pred_begin(Block), E = pred_end(Block); I != E; ++I
)
+ if (!Blocks.count(
*I
)) Count++;
return Count;
}
return Count;
}