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:
Reid Kleckner 2017-01-09 17:09:59 +00:00
parent ab1bf94dfe
commit e4bb54a855
1 changed files with 1 additions and 1 deletions

View File

@ -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;