Skip to content

Commit 94ebbb5

Browse files
committed
check node hasChildren too
1 parent 4bfd0d4 commit 94ebbb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ enum class ThunkAction {
6060
static swift::Demangle::NodePointer
6161
childAtPath(swift::Demangle::NodePointer node,
6262
llvm::ArrayRef<swift::Demangle::Node::Kind> path) {
63-
if (!node || path.empty())
63+
if (!node || !node->hasChildren() || path.empty())
6464
return node;
6565

6666
auto current_step = path.front();

0 commit comments

Comments
 (0)