Substitute unscoped template names.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82119 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index 6429bd7..9b5fd74 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/lib/CodeGen/Mangle.cpp
@@ -276,7 +276,11 @@
void CXXNameMangler::mangleUnscopedTemplateName(const FunctionDecl *FD) {
// <unscoped-template-name> ::= <unscoped-name>
// ::= <substitution>
+ if (mangleSubstitution(FD))
+ return;
+
mangleUnscopedName(FD);
+ addSubstitution(FD);
}
void CXXNameMangler::mangleCalloffset(int64_t nv, int64_t v) {