We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ed0f40 commit 87bd679Copy full SHA for 87bd679
lldb/source/Plugins/LanguageRuntime/Swift/SwiftLanguageRuntimeNames.cpp
@@ -60,12 +60,12 @@ enum class ThunkAction {
60
static swift::Demangle::NodePointer
61
childAtPath(swift::Demangle::NodePointer node,
62
llvm::ArrayRef<swift::Demangle::Node::Kind> path) {
63
- if (path.empty())
+ if (!node || path.empty())
64
return node;
65
66
auto current_step = path.front();
67
for (auto *child : *node)
68
- if (child->getKind() == current_step)
+ if (child && child->getKind() == current_step)
69
return childAtPath(child, path.drop_front());
70
return nullptr;
71
}
0 commit comments