projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[LPM] Simplify this code and fix a compile error for compilers that
[oota-llvm.git]
/
lib
/
IR
/
LegacyPassManager.cpp
diff --git
a/lib/IR/LegacyPassManager.cpp
b/lib/IR/LegacyPassManager.cpp
index a3e83fd52798006f7ea0febb3e65d2a006400437..aec6874332ac8d7d6ea64437b7c947aa204853e0 100644
(file)
--- a/
lib/IR/LegacyPassManager.cpp
+++ b/
lib/IR/LegacyPassManager.cpp
@@
-729,9
+729,7
@@
void PMTopLevelManager::addImmutablePass(ImmutablePass *P) {
// fast lookup.
const PassInfo *PassInf = findAnalysisPassInfo(AID);
assert(PassInf && "Expected all immutable passes to be initialized");
// fast lookup.
const PassInfo *PassInf = findAnalysisPassInfo(AID);
assert(PassInf && "Expected all immutable passes to be initialized");
- const std::vector<const PassInfo*> &ImmPI =
- PassInf->getInterfacesImplemented();
- for (const PassInfo *ImmPI : ImmPI)
+ for (const PassInfo *ImmPI : PassInf->getInterfacesImplemented())
ImmutablePassMap[ImmPI->getTypeInfo()] = P;
}
ImmutablePassMap[ImmPI->getTypeInfo()] = P;
}