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);
}
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits