Skip to content

Commit ef05a57

Browse files
committed
[unittests] LLDB: Fix build failure after removal of CompilerType::GetIndexOfFieldWithName overload
See llvm#135963. `CompilerType::GetIndexOfChildWithName` has an additional parameter in our fork. (cherry picked from commit a4be6a2)
1 parent 1b1c498 commit ef05a57

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lldb/unittests/Platform/PlatformSiginfoTest.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ class PlatformSiginfoTest : public ::testing::Test {
6161
for (auto field_name : llvm::split(path, '.')) {
6262
uint64_t bit_offset;
6363
std::string name;
64-
auto index_or_err = field_type.GetIndexOfChildWithName(field_name, false);
64+
lldb_private::ExecutionContext exe_ctx{};
65+
auto index_or_err =
66+
field_type.GetIndexOfChildWithName(field_name, &exe_ctx, false);
6567
ASSERT_FALSE(!index_or_err);
6668
field_type = field_type.GetFieldAtIndex(*index_or_err, name, &bit_offset,
6769
nullptr, nullptr);

0 commit comments

Comments
 (0)