[PATCH] [ms-cxxabi] Fix the calling convention for operator new in records

Reid Kleckner rnk at google.com
Wed Sep 25 16:53:10 PDT 2013


Hi rsmith,

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.

http://llvm-reviews.chandlerc.com/D1761

Files:
  include/clang/AST/DeclCXX.h
  include/clang/Sema/Sema.h
  lib/AST/DeclCXX.cpp
  lib/AST/MicrosoftMangle.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaType.cpp
  test/CodeGenCXX/mangle-ms.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1761.1.patch
Type: text/x-patch
Size: 9020 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130925/e73ed938/attachment.bin>


More information about the cfe-commits mailing list