[llvm] Extra assertions in RS4GC (PR #71201)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 08:01:31 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 778a48468b5fce8deafb40be0704cb69b052a50a e0d7e367dd15b48a6e257596f5517444b72e727b -- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 3206549733c2..93cacbe5ef17 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -1252,8 +1252,8 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &Cache,
#endif
// get the data layout to compare the sizes of base/derived pointer values
- [[maybe_unused]]
- auto &DL = cast<llvm::Instruction>(Def)->getModule()->getDataLayout();
+ [[maybe_unused]] auto &DL =
+ cast<llvm::Instruction>(Def)->getModule()->getDataLayout();
// Cache all of our results so we can cheaply reuse them
// NOTE: This is actually two caches: one of the base defining value
// relation and one of the base pointer relation! FIXME
``````````
</details>
https://github.com/llvm/llvm-project/pull/71201
More information about the llvm-commits
mailing list