[Lldb-commits] [lldb] 3804292 - [lldb] Fix offload bundle unit tests on 32-bit systems (#226922)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Sep 28 02:20:57 PDT 2026
Author: David Spickett
Date: 2026-09-28T09:20:49Z
New Revision: 3804292c4c3adcd4b8505dc78aed73e211b44752
URL: https://github.com/llvm/llvm-project/commit/3804292c4c3adcd4b8505dc78aed73e211b44752
DIFF: https://github.com/llvm/llvm-project/commit/3804292c4c3adcd4b8505dc78aed73e211b44752.diff
LOG: [lldb] Fix offload bundle unit tests on 32-bit systems (#226922)
DataExtractor::GetByteSize returns uint64_t for reasons I don't yet
understand. I might change it to size_t but let's unblock the build for
now.
Fixes #222362 / 08ee0ef5da10d27d5776df1e1ff81c46a38d9b5c.
Added:
Modified:
lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp
Removed:
################################################################################
diff --git a/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp b/lldb/unittests/ObjectContainer/ObjectContainerClangOffloadBundleTest.cpp
index 182a1c1214bb3..4905d3a1597e8 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(), gfx908_data->GetByteSize()}},
+ {gfx908_data->GetDataStart(),
+ static_cast<size_t>(gfx908_data->GetByteSize())}},
{"hipv4-amdgpu-amd-amdhsa--gfx942",
- {gfx942_data->GetDataStart(), gfx942_data->GetByteSize()}},
+ {gfx942_data->GetDataStart(),
+ static_cast<size_t>(gfx942_data->GetByteSize())}},
}};
BundleData bundle = MakeBundle(inputs);
auto bundled_file = MakeELFContainingBundle(bundle.bytes);
More information about the lldb-commits
mailing list