[cfe-commits] r92163 - /cfe/trunk/include/clang/AST/ASTContext.h
Benjamin Kramer
benny.kra at googlemail.com
Fri Dec 25 09:06:27 PST 2009
Author: d0k
Date: Fri Dec 25 11:06:27 2009
New Revision: 92163
URL: http://llvm.org/viewvc/llvm-project?rev=92163&view=rev
Log:
Make sure operator new[] and operator delete[] match. This will hopefully silence 3 remaining MSVC warnings.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=92163&r1=92162&r2=92163&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Fri Dec 25 11:06:27 2009
@@ -1248,7 +1248,8 @@
/// 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);
}
More information about the cfe-commits
mailing list