Skip to content

Commit ff5203d

Browse files
committed
return 0 not None for ThickFunction
1 parent 74d407a commit ff5203d

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
@@ -1184,7 +1184,7 @@ llvm::Optional<size_t> SwiftLanguageRuntimeImpl::GetIndexOfChildMemberWithName(
11841184
case RecordKind::ThickFunction:
11851185
// There are two fields, `function` and `context`, but they're not exposed
11861186
// by lldb.
1187-
return {};
1187+
return 0;
11881188
case RecordKind::OpaqueExistential:
11891189
// `OpaqueExistential` is documented as:
11901190
// An existential is a three-word buffer followed by value metadata...

0 commit comments

Comments
 (0)