Skip to content

Commit ea1408b

Browse files
authored
Merge pull request #73290 from xedin/print-error-type-when-debugging-types
NFC: Add `@error_type` while printing errors types in debug mode
2 parents a6bf626 + 24db5e7 commit ea1408b

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)