summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index d156ba549ee..57f125e3366 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -877,10 +877,7 @@ void CXXNameMangler::mangleType(const RecordType *T) {
mangleType(static_cast<const TagType*>(T));
}
void CXXNameMangler::mangleType(const TagType *T) {
- if (!T->getDecl()->getIdentifier())
- mangleName(T->getDecl()->getTypedefForAnonDecl());
- else
- mangleName(T->getDecl());
+ mangleName(T->getDecl());
}
// <type> ::= <array-type>
OpenPOWER on IntegriCloud