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 ab6faa9 commit 5f47252Copy full SHA for 5f47252
lib/AST/ASTNode.cpp
@@ -109,7 +109,9 @@ void ASTNode::walk(ASTWalker &Walker) {
109
}
110
111
void ASTNode::dump(raw_ostream &OS, unsigned Indent) const {
112
- if (auto S = dyn_cast<Stmt*>())
+ if (isNull())
113
+ OS << "(null)";
114
+ else if (auto S = dyn_cast<Stmt*>())
115
S->dump(OS, /*context=*/nullptr, Indent);
116
else if (auto E = dyn_cast<Expr*>())
117
E->dump(OS, Indent);
0 commit comments