[Lldb-commits] [lldb] [lldb] Fix offload bundle unit tests on 32-bit systems (PR #226922)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 28 02:01:28 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 -- lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.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/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp b/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp
index 16256c7a8..4905d3a15 100644
--- a/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp
+++ b/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp
@@ -281,9 +281,11 @@ TEST_F(ObjectContainerClangOffloadBundleTest,
std::array<BundleInput, 3> inputs = {{
{"host-x86_64-unknown-linux-gnu", {}},
{"hipv4-amdgpu-amd-amdhsa--gfx908",
- {gfx908_data->GetDataStart(), static_cast<size_t>(gfx908_data->GetByteSize())}},
+ {gfx908_data->GetDataStart(),
+ static_cast<size_t>(gfx908_data->GetByteSize())}},
{"hipv4-amdgpu-amd-amdhsa--gfx942",
- {gfx942_data->GetDataStart(), static_cast<size_t>(gfx942_data->GetByteSize())}},
+ {gfx942_data->GetDataStart(),
+ static_cast<size_t>(gfx942_data->GetByteSize())}},
}};
BundleData bundle = MakeBundle(inputs);
auto bundled_file = MakeELFContainingBundle(bundle.bytes);
``````````
</details>
https://github.com/llvm/llvm-project/pull/226922
More information about the lldb-commits
mailing list