summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/MicrosoftMangle.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-02-27 13:46:31 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-02-27 13:46:31 +0000
commit57cbe5c790256791a58c0e394641b0136131d997 (patch)
tree32048a3476d8c10d23b5006ceed1b654fe35edf1 /clang/lib/AST/MicrosoftMangle.cpp
parent8ee2a5adc79c3fcc648953b996a3ea3b4aaf7ef2 (diff)
downloadbcm5719-llvm-57cbe5c790256791a58c0e394641b0136131d997.tar.gz
bcm5719-llvm-57cbe5c790256791a58c0e394641b0136131d997.zip
Better support for constructors with -cxx-abi microsoft, partly fixes PR12784
llvm-svn: 176186
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r--clang/lib/AST/MicrosoftMangle.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp
index b0fc25cfa4c..8c31e57578c 100644
--- a/clang/lib/AST/MicrosoftMangle.cpp
+++ b/clang/lib/AST/MicrosoftMangle.cpp
@@ -503,6 +503,10 @@ MicrosoftCXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND,
llvm_unreachable("Can't mangle Objective-C selector names here!");
case DeclarationName::CXXConstructorName:
+ if (ND == Structor) {
+ assert(StructorType == Ctor_Complete &&
+ "Should never be asked to mangle a ctor other than complete");
+ }
Out << "?0";
break;
OpenPOWER on IntegriCloud