[llvm] [RemoveDIs] Update Coroutine passes to handle DPValues (PR #74480)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 5 06:39:48 PST 2023
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 410bf5e1425432e49a46d3c4b7962b747a976c85 eef7f553f923914b152935f5284bfc924a5510aa -- llvm/lib/IR/BasicBlock.cpp llvm/lib/Transforms/Coroutines/CoroFrame.cpp llvm/lib/Transforms/Coroutines/CoroInternal.h 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 4b73093c8a..61ee63f0ac 100644
--- a/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroFrame.cpp
@@ -1931,7 +1931,7 @@ static void insertSpills(const FrameDataInfo &FrameData, coro::Shape &Shape) {
U->replaceUsesOfWith(Def, CurrentReload);
// Instructions are added to Def's user list if the attached
// debug records use Def. Update those now.
- for (auto &DPV: U->getDbgValueRange())
+ for (auto &DPV : U->getDbgValueRange())
DPV.replaceVariableLocationOp(Def, CurrentReload, true);
}
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/74480
More information about the llvm-commits
mailing list