[llvm] [JITLink] Fix symbol transfer when splitting blocks (PR #225735)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 04:54:14 PDT 2026
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 origin/main HEAD --extensions cpp -- llvm/lib/ExecutionEngine/JITLink/JITLink.cpp llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp b/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
index 5c8a0ff8c..c8ab7df0b 100644
--- a/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
+++ b/llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
@@ -842,8 +842,8 @@ TEST(LinkGraphTest, SplitBlockPreservesLaterSymbolAddress) {
orc::ExecutorAddr BlockAddr(0x1000);
auto &B = G.createContentBlock(Sec, BlockContent, BlockAddr, 1, 0);
- auto &S = G.addDefinedSymbol(B, 15, "S", 1, Linkage::Strong,
- Scope::Default, false, false);
+ auto &S = G.addDefinedSymbol(B, 15, "S", 1, Linkage::Strong, Scope::Default,
+ false, false);
const orc::ExecutorAddr SymbolAddr = S.getAddress();
auto Blocks = G.splitBlock(B, ArrayRef<int>({4, 8}));
``````````
</details>
https://github.com/llvm/llvm-project/pull/225735
More information about the llvm-commits
mailing list