correctly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91136
91177308-0d34-0410-b5e6-
96231b3b80d8
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>
template void ft8<int>();
// CHECK: @_Z3ft8IPvEN11__enable_ifIXsr11__is_scalarIT_E7__valueEvE6__typeEv
template void ft8<void*>();
+
+// PR5706
+// This example was crashing in the mangler code
+struct S8 {
+ virtual ~S8() { }
+};
+
+static struct : S8 { } obj8;