forked from OSchip/llvm-project
[coroutines] Call initializePass in coroutine pass constructors
Summary: Fixes: https://bugs.llvm.org/show_bug.cgi?id=33226 Reviewers: chandlerc, davide, majnemer, dblaikie Reviewed By: chandlerc Subscribers: EricWF, llvm-commits Differential Revision: https://reviews.llvm.org/D33701 llvm-svn: 304277
This commit is contained in:
parent
0a7b989036
commit
2bc782d8da
|
|
@ -101,7 +101,9 @@ namespace {
|
|||
struct CoroCleanup : FunctionPass {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
|
||||
CoroCleanup() : FunctionPass(ID) {}
|
||||
CoroCleanup() : FunctionPass(ID) {
|
||||
initializeCoroCleanupPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
std::unique_ptr<Lowerer> L;
|
||||
|
||||
|
|
|
|||
|
|
@ -183,7 +183,9 @@ namespace {
|
|||
|
||||
struct CoroEarly : public FunctionPass {
|
||||
static char ID; // Pass identification, replacement for typeid.
|
||||
CoroEarly() : FunctionPass(ID) {}
|
||||
CoroEarly() : FunctionPass(ID) {
|
||||
initializeCoroEarlyPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
std::unique_ptr<Lowerer> L;
|
||||
|
||||
|
|
|
|||
|
|
@ -258,7 +258,9 @@ static bool replaceDevirtTrigger(Function &F) {
|
|||
namespace {
|
||||
struct CoroElide : FunctionPass {
|
||||
static char ID;
|
||||
CoroElide() : FunctionPass(ID) {}
|
||||
CoroElide() : FunctionPass(ID) {
|
||||
initializeCoroElidePass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
std::unique_ptr<Lowerer> L;
|
||||
|
||||
|
|
|
|||
|
|
@ -681,7 +681,9 @@ namespace {
|
|||
|
||||
struct CoroSplit : public CallGraphSCCPass {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
CoroSplit() : CallGraphSCCPass(ID) {}
|
||||
CoroSplit() : CallGraphSCCPass(ID) {
|
||||
initializeCoroSplitPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
bool Run = false;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue