[llvm] [Coroutines][NFC] Refactor CoroSplit for Switch Resume ABI (PR #80758)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 5 15:03:24 PST 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 93fd05c0891caa8c68cb37b64217467a0ef60412 22de4d457c2fc9b3d48c6bd03839361bb8ea42f5 -- llvm/lib/Transforms/Coroutines/CoroSplit.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index 34aa27c349..a552b3ac20 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -1720,8 +1720,8 @@ private:
} // namespace
-static void
-replaceAsyncResumeFunction(CoroSuspendAsyncInst *Suspend, Value *Continuation) {
+static void replaceAsyncResumeFunction(CoroSuspendAsyncInst *Suspend,
+ Value *Continuation) {
auto *ResumeIntrinsic = Suspend->getResumeFunction();
auto &Context = Suspend->getParent()->getParent()->getContext();
auto *Int8PtrTy = PointerType::getUnqual(Context);
``````````
</details>
https://github.com/llvm/llvm-project/pull/80758
More information about the llvm-commits
mailing list