projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
881b234
)
[NFC] Converting to range-based for.
author
Chris Bieneman
<beanz@apple.com>
Wed, 29 Apr 2015 21:45:22 +0000
(21:45 +0000)
committer
Chris Bieneman
<beanz@apple.com>
Wed, 29 Apr 2015 21:45:22 +0000
(21:45 +0000)
llvm-svn: 236163
llvm/lib/IR/LegacyPassManager.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/LegacyPassManager.cpp
b/llvm/lib/IR/LegacyPassManager.cpp
index
6870032
..
bbec642
100644
(file)
--- a/
llvm/lib/IR/LegacyPassManager.cpp
+++ b/
llvm/lib/IR/LegacyPassManager.cpp
@@
-88,8
+88,7
@@
PrintAfterAll("print-after-all",
static bool ShouldPrintBeforeOrAfterPass(const PassInfo *PI,
PassOptionList &PassesToPrint) {
- for (unsigned i = 0, ie = PassesToPrint.size(); i < ie; ++i) {
- const llvm::PassInfo *PassInf = PassesToPrint[i];
+ for (auto *PassInf : PassesToPrint) {
if (PassInf)
if (PassInf->getPassArgument() == PI->getPassArgument()) {
return true;