aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r--lib/CodeGen/Mangle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index 69e73e78c0..e07c38fd11 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/lib/CodeGen/Mangle.cpp
@@ -335,7 +335,7 @@ void CXXNameMangler::mangleUnscopedTemplateName(const TemplateDecl *ND) {
if (mangleSubstitution(ND))
return;
- mangleUnscopedName(ND);
+ mangleUnscopedName(ND->getTemplatedDecl());
addSubstitution(ND);
}
@@ -532,7 +532,7 @@ void CXXNameMangler::mangleTemplatePrefix(const TemplateDecl *ND) {
// FIXME: <substitution> and <template-param>
manglePrefix(ND->getDeclContext());
- mangleUnqualifiedName(ND);
+ mangleUnqualifiedName(ND->getTemplatedDecl());
}
void