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.
2 parents 7d7d5e2 + 87bd679 commit 021be3bCopy full SHA for 021be3b
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