]> granicus.if.org Git - clang/commitdiff
Make sure operator new[] and operator delete[] match. This will hopefully silence...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 25 Dec 2009 17:06:27 +0000 (17:06 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 25 Dec 2009 17:06:27 +0000 (17:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92163 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/ASTContext.h

index 0a9fe2aba194017f26548a532529ae3a03810dc6..e815c5edbe1e441d60b06c9ee60975df71096e0b 100644 (file)
@@ -1248,7 +1248,8 @@ inline void *operator new[](size_t Bytes, clang::ASTContext& C,
 /// invoking it directly; see the new[] operator for more details. This operator
 /// is called implicitly by the compiler if a placement new[] expression using
 /// the ASTContext throws in the object constructor.
-inline void operator delete[](void *Ptr, clang::ASTContext &C) throw () {
+inline void operator delete[](void *Ptr, clang::ASTContext &C, size_t)
+              throw () {
   C.Deallocate(Ptr);
 }