Skip to content

Commit b063947

Browse files
committed
[AST] Include ErrorExpr's original expr in ASTDumper
1 parent 53028ab commit b063947

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/AST/ASTDumper.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3425,6 +3425,8 @@ class PrintExpr : public ExprVisitor<PrintExpr, void, Label>,
34253425

34263426
void visitErrorExpr(ErrorExpr *E, Label label) {
34273427
printCommon(E, "error_expr", label);
3428+
if (auto *origExpr = E->getOriginalExpr())
3429+
printRec(origExpr, Label::optional("original_expr"));
34283430
printFoot();
34293431
}
34303432

0 commit comments

Comments
 (0)