Skip to content

Commit 24db5e7

Browse files
committed
NFC: Add @error_type while printing errors types in debug mode
1 parent 7b45597 commit 24db5e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/ASTPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5957,7 +5957,7 @@ class TypePrinter : public TypeVisitor<TypePrinter> {
59575957

59585958
void visitErrorType(ErrorType *T) {
59595959
if (auto originalType = T->getOriginalType()) {
5960-
if (Options.PrintInSILBody)
5960+
if (Options.PrintTypesForDebugging || Options.PrintInSILBody)
59615961
Printer << "@error_type ";
59625962
visit(originalType);
59635963
}

0 commit comments

Comments
 (0)