diff options
| author | Gor Nishanov <GorNishanov@gmail.com> | 2019-06-18 19:49:48 +0000 |
|---|---|---|
| committer | Gor Nishanov <GorNishanov@gmail.com> | 2019-06-18 19:49:48 +0000 |
| commit | 3fcad775c0fef485814aad740e99e4ea5c1d4b54 (patch) | |
| tree | 0c83316d51a0aed49becba94046aea599b33aa27 /llvm | |
| parent | 050b804b139e8885274f2c7dfa1260950ed97075 (diff) | |
| download | bcm5719-llvm-3fcad775c0fef485814aad740e99e4ea5c1d4b54.tar.gz bcm5719-llvm-3fcad775c0fef485814aad740e99e4ea5c1d4b54.zip | |
[coroutines] Add missing pass dependency.
Summary:
CoroSplit depends on CallGraphWrapperPass, but it was not explicitly adding it as a pass dependency.
This missing dependency can trigger errors / assertions / crashes in PMTopLevelManager::schedulePass() under certain configurations.
Author: ben-clayton
Reviewers: GorNishanov
Reviewed By: GorNishanov
Subscribers: capn, EricWF, modocache, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D63144
llvm-svn: 363727
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Coroutines/CoroSplit.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp index a8de9fe3feb..8afb2f0ff11 100644 --- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp +++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp @@ -946,7 +946,12 @@ struct CoroSplit : public CallGraphSCCPass { char CoroSplit::ID = 0; -INITIALIZE_PASS( +INITIALIZE_PASS_BEGIN( + CoroSplit, "coro-split", + "Split coroutine into a set of functions driving its state machine", false, + false) +INITIALIZE_PASS_DEPENDENCY(CallGraphWrapperPass) +INITIALIZE_PASS_END( CoroSplit, "coro-split", "Split coroutine into a set of functions driving its state machine", false, false) |

