Skip to content

Commit b20b18d

Browse files
committed
[ASTPrinter] Remove unnecessary condition
1 parent 9da3746 commit b20b18d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,10 +1325,8 @@ void PrintAST::printPattern(const Pattern *pattern) {
13251325
break;
13261326

13271327
case PatternKind::Expr: {
1328-
if (Options.PrintExprs) {
1329-
auto expr = cast<ExprPattern>(pattern)->getSubExpr();
1330-
visit(expr);
1331-
}
1328+
auto expr = cast<ExprPattern>(pattern)->getSubExpr();
1329+
visit(expr);
13321330
break;
13331331
}
13341332

0 commit comments

Comments
 (0)