]> granicus.if.org Git - clang/commit
[ms-cxxabi] Fix the calling convention for operator new in records
authorReid Kleckner <reid@kleckner.net>
Tue, 8 Oct 2013 00:58:57 +0000 (00:58 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 8 Oct 2013 00:58:57 +0000 (00:58 +0000)
commitd1a32c328bce903fb1b17fc8147b646be818298e
treed21b7e174dfd673798684d9b32326b0bdb34f246
parent2dd68de1bf29993c8c8d7e20a3f230fc9a5a40e8
[ms-cxxabi] Fix the calling convention for operator new in records

Summary:
Operator new, new[], delete, and delete[] are all implicitly static when
declared inside a record.  CXXMethodDecl already knows this, but we need
to account for that before we pick the calling convention for the
function type.

Fixes PR17371.

Reviewers: rsmith

CC: cfe-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1761

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192150 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/DeclCXX.h
include/clang/Basic/OperatorKinds.h
include/clang/Sema/DeclSpec.h
include/clang/Sema/Sema.h
lib/AST/DeclCXX.cpp
lib/AST/MicrosoftMangle.cpp
lib/Sema/DeclSpec.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaType.cpp
test/CodeGenCXX/mangle-ms.cpp