diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 3fe56346088c74..455552a5ea6d21 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -305,6 +305,7 @@ StringRef CGDebugInfo::getClassName(const RecordDecl *RD) { llvm::raw_svector_ostream OS(Name); PrintingPolicy PP = getPrintingPolicy(); PP.PrintCanonicalTypes = true; + PP.SuppressInlineNamespace = false; RD->getNameForDiagnostic(OS, PP, /*Qualified*/ false); diff --git a/clang/test/CodeGenCXX/debug-info-template.cpp b/clang/test/CodeGenCXX/debug-info-template.cpp index a6edd59171b293..4342b3e27a0b27 100644 --- a/clang/test/CodeGenCXX/debug-info-template.cpp +++ b/clang/test/CodeGenCXX/debug-info-template.cpp @@ -179,3 +179,11 @@ ClassTemplateArgRefTemplate ClassTemplateArgRefObj; // CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "ClassTemplateArgRefTemplate<