summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2017-01-09 17:09:59 +0000
committerReid Kleckner <rnk@google.com>2017-01-09 17:09:59 +0000
commite4bb54a8556ac37009dfa815d438f1e0f6890bd2 (patch)
tree54ba88f690e797634267e18bd1405ca0bb7afdcb /clang/lib/AST/MicrosoftMangle.cpp
parentab1bf94dfe703e982992007bdebad7f3cc549774 (diff)
downloadbcm5719-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.cpp2
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;
OpenPOWER on IntegriCloud