From bbe649c25084b1b53ca5c33ce7cf62ec7b2c8dcf Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Tue, 5 Aug 2014 06:42:40 +0000 Subject: [PATCH] MS ABI: Make the alias template mangling more correct llvm-svn: 214847 --- clang/lib/AST/MicrosoftMangle.cpp | 2 +- clang/test/CodeGenCXX/mangle-ms-cxx11.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 0c80ff8..7805ed5 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -1187,7 +1187,7 @@ void MicrosoftCXXNameMangler::mangleTemplateArg(const TemplateDecl *TD, } else if (isa(ND)) { // FIXME: The mangling, while compatible with VS "14", is horribly // broken. Update this when they release their next compiler. - Out << '?'; + Out << '$'; } else { llvm_unreachable("unexpected template template NamedDecl!"); } diff --git a/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp b/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp index cb9c64f..8a528a6 100644 --- a/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp +++ b/clang/test/CodeGenCXX/mangle-ms-cxx11.cpp @@ -151,5 +151,5 @@ template