Skip to content

Commit 3cf13ec

Browse files
fixup! fix tests
1 parent ac7cf1f commit 3cf13ec

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lldb/unittests/Platform/PlatformSiginfoTest.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ class PlatformSiginfoTest : public ::testing::Test {
6161
for (auto field_name : llvm::split(path, '.')) {
6262
uint64_t bit_offset;
6363
std::string name;
64-
field_type = field_type.GetFieldAtIndex(
65-
*field_type.GetIndexOfChildWithName(field_name, false), name,
66-
&bit_offset, nullptr, nullptr);
64+
auto index_or_err = field_type.GetIndexOfChildWithName(field_name, false);
65+
ASSERT_TRUE(index_or_err);
66+
field_type = field_type.GetFieldAtIndex(*index_or_err, name, &bit_offset,
67+
nullptr, nullptr);
6768
ASSERT_TRUE(field_type);
6869
total_offset += bit_offset;
6970
}

0 commit comments

Comments
 (0)