Skip to content

Commit e2cdc17

Browse files
authored
[lldb] Fix kind path in nodeAtPath call (#6762)
Fix to `nodeAtPath` API mistake in #6758. The `Global` kind is not to be passed as part of the path.
1 parent 1106164 commit e2cdc17

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeDynamicTypeResolution.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,8 @@ SwiftLanguageRuntimeImpl::GetNumChildren(CompilerType type,
10541054
NodePointer root = SwiftLanguageRuntime::DemangleSymbolAsNode(
10551055
type.GetMangledTypeName().GetStringRef(), dem);
10561056
using Kind = Node::Kind;
1057-
auto *builtin_type =
1058-
swift_demangle::nodeAtPath(root, {Kind::Global, Kind::TypeMangling,
1059-
Kind::Type, Kind::BuiltinTypeName});
1057+
auto *builtin_type = swift_demangle::nodeAtPath(
1058+
root, {Kind::TypeMangling, Kind::Type, Kind::BuiltinTypeName});
10601059
if (builtin_type)
10611060
return 0;
10621061
}

0 commit comments

Comments
 (0)