[llvm] [Coroutines] properly update CallGraph in CoroSplit (PR #107935)
Chuanqi Xu via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 21:55:16 PDT 2024
================
@@ -2080,12 +2080,13 @@ splitCoroutine(Function &F, SmallVectorImpl<Function *> &Clones,
return Shape;
}
-static void updateCallGraphAfterCoroutineSplit(
+static LazyCallGraph::SCC &updateCallGraphAfterCoroutineSplit(
LazyCallGraph::Node &N, const coro::Shape &Shape,
const SmallVectorImpl<Function *> &Clones, LazyCallGraph::SCC &C,
LazyCallGraph &CG, CGSCCAnalysisManager &AM, CGSCCUpdateResult &UR,
FunctionAnalysisManager &FAM) {
----------------
ChuanqiXu9 wrote:
Can't we make the type of `C` to `LazyCallGraph::SCC *&`?
https://github.com/llvm/llvm-project/pull/107935
More information about the llvm-commits
mailing list