Follow up to r291448: use isStructorDecl in one more place
This pointer comparison has shown to be error-prone, so use the standard helper for it. NFC llvm-svn: 291450
This commit is contained in:
parent
ab1bf94dfe
commit
e4bb54a855
|
@ -902,7 +902,7 @@ void MicrosoftCXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND,
|
|||
llvm_unreachable("Can't mangle Objective-C selector names here!");
|
||||
|
||||
case DeclarationName::CXXConstructorName:
|
||||
if (Structor == getStructor(ND)) {
|
||||
if (isStructorDecl(ND)) {
|
||||
if (StructorType == Ctor_CopyingClosure) {
|
||||
Out << "?_O";
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue