[llvm] [llvm/llvm-project][Coroutines] Improve debugging and minor refactoring (PR #104642)

via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 16 14:19:07 PDT 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 808933f60b574c45087d8255ff113083c4536d85 a012ba90dabac3c02cb7defe460e3b81f092c869 --extensions cpp -- llvm/lib/Transforms/Coroutines/CoroEarly.cpp llvm/lib/Transforms/Coroutines/CoroFrame.cpp 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/CoroFrame.cpp b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
index be268a8ca0..9a884261cf 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1747,8 +1747,8 @@ static Instruction *splitBeforeCatchSwitch(CatchSwitchInst *CatchSwitch) {
 }
 
 static BasicBlock::iterator getSpillInsertionPt(const coro::Shape &Shape,
-                                               Value *Def,
-                                               const DominatorTree &DT) {
+                                                Value *Def,
+                                                const DominatorTree &DT) {
   BasicBlock::iterator InsertPt;
   if (auto *Arg = dyn_cast<Argument>(Def)) {
     // For arguments, we will place the store instruction right after

``````````

</details>


https://github.com/llvm/llvm-project/pull/104642


More information about the llvm-commits mailing list