Skip to content

Commit fc3c654

Browse files
committed
use <3 instead of <=2 - for consistency
1 parent b85f9cd commit fc3c654

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Target/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ llvm::Optional<size_t> SwiftLanguageRuntimeImpl::GetIndexOfChildMemberWithName(
11921192
// the number of fields are increased to match.
11931193
if (name.startswith("payload_data_")) {
11941194
uint32_t index;
1195-
if (name.take_back().getAsInteger(10, index) && index <= 2) {
1195+
if (name.take_back().getAsInteger(10, index) && index < 3) {
11961196
child_indexes.push_back(index);
11971197
return child_indexes.size();
11981198
}

0 commit comments

Comments
 (0)