diff options
author | Andrey Bokhanko <andreybokhanko@gmail.com> | 2015-09-14 21:29:57 +0000 |
---|---|---|
committer | Andrey Bokhanko <andreybokhanko@gmail.com> | 2015-09-14 21:29:57 +0000 |
commit | ddc04ef4933dbb176fde074613508d5311d3c338 (patch) | |
tree | 1866941fa59589cf20edab4bb4851d18119c4742 /clang/lib/Sema/SemaDecl.cpp | |
parent | 022bdc7d7361f48a359194e630e8b16f1d134cfe (diff) | |
download | bcm5719-llvm-ddc04ef4933dbb176fde074613508d5311d3c338.tar.gz bcm5719-llvm-ddc04ef4933dbb176fde074613508d5311d3c338.zip |
PR24595: Ignore calling convention modifiers for structors in MS ABI.
MS compiler ignores calling convention modifiers for structors. This patch makes
clang do the same (for MS ABI). This fixes PR24595 and makes vswriter.h header
(from Windows SDK 8.1) compilable.
Differential Revision: http://reviews.llvm.org/D12402
llvm-svn: 247619
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 43aa2d73fc6..8501bc5b224 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -7244,7 +7244,8 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, << DeclSpec::getSpecifierName(TSCS); if (D.isFirstDeclarationOfMember()) - adjustMemberFunctionCC(R, D.isStaticMember()); + adjustMemberFunctionCC(R, D.isStaticMember(), D.isCtorOrDtor(), + D.getIdentifierLoc()); bool isFriend = false; FunctionTemplateDecl *FunctionTemplate = nullptr; |