Skip to content

Commit a7e8dbc

Browse files
committed
Switch to using QualType::print
1 parent 2e6bf79 commit a7e8dbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenTypes.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ std::string CIRGenTypes::getRecordTypeName(const clang::RecordDecl *recordDecl,
6363
policy.SuppressInlineNamespace = false;
6464
policy.AlwaysIncludeTypeForTemplateArgument = true;
6565
policy.PrintCanonicalTypes = true;
66+
policy.SuppressTagKeyword = true;
6667

6768
if (recordDecl->getIdentifier()) {
68-
recordDecl->getNameForDiagnostic(outStream, policy, true);
69+
astContext.getRecordType(recordDecl).print(outStream, policy);
6970
} else if (auto *typedefNameDecl = recordDecl->getTypedefNameForAnonDecl()) {
7071
typedefNameDecl->printQualifiedName(outStream, policy);
7172
} else {

0 commit comments

Comments
 (0)