Skip to content

Commit 51b13bf

Browse files
committed
[3.0 fix] Backport to older printer interfaces
1 parent 49ff38d commit 51b13bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/AST/TypeRepr.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,13 @@ void AttributedTypeRepr::printAttrs(ASTPrinter &Printer,
284284
};
285285

286286
if (!Options.SkipParameterTypeAttributes) {
287-
if (hasAttr(TAK_autoclosure))
288-
Printer.printSimpleAttr("@autoclosure") << " ";
287+
if (hasAttr(TAK_autoclosure)) {
288+
Printer.printSimpleAttr("@autoclosure");
289+
Printer << " ";
290+
}
289291
if (hasAttr(TAK_escaping))
290-
Printer.printSimpleAttr("@escaping") << " ";
292+
Printer.printSimpleAttr("@escaping");
293+
Printer << " ";
291294
}
292295

293296
if (hasAttr(TAK_thin)) {

0 commit comments

Comments
 (0)