diff options
author | Reid Kleckner <rnk@google.com> | 2017-01-09 17:09:59 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-01-09 17:09:59 +0000 |
commit | e4bb54a8556ac37009dfa815d438f1e0f6890bd2 (patch) | |
tree | 54ba88f690e797634267e18bd1405ca0bb7afdcb /clang/lib/AST/MicrosoftMangle.cpp | |
parent | ab1bf94dfe703e982992007bdebad7f3cc549774 (diff) | |
download | bcm5719-llvm-e4bb54a8556ac37009dfa815d438f1e0f6890bd2.tar.gz bcm5719-llvm-e4bb54a8556ac37009dfa815d438f1e0f6890bd2.zip |
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
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index 8e01c454818..76c368d7f04 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -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; |