From fb523e16dd1f860ff02a3ae03e5e3e25327a5860 Mon Sep 17 00:00:00 2001 From: Chris Lattner <sabre@nondot.org> Date: Fri, 3 Apr 2009 17:31:50 +0000 Subject: [PATCH] fix some warnings on VC++, patch by John Thompson! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68391 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/ASTContext.h | 2 +- include/clang/AST/Stmt.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index 4287494b3d..77fa994e74 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -758,7 +758,7 @@ 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) +inline void operator delete(void *Ptr, clang::ASTContext &C, size_t) throw () { C.Deallocate(Ptr); } diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 25217215f5..11023234b0 100644 --- a/include/clang/AST/Stmt.h +++ b/include/clang/AST/Stmt.h @@ -131,9 +131,10 @@ public: return mem; } - void operator delete(void*, ASTContext& C) throw() { } - void operator delete(void*, ASTContext& C, unsigned alignment) throw() { } + void operator delete(void*, ASTContext&, unsigned) throw() { } + void operator delete(void*, ASTContext*, unsigned) throw() { } void operator delete(void*, std::size_t) throw() { } + void operator delete(void*, void*) throw() { } protected: /// DestroyChildren - Invoked by destructors of subclasses of Stmt to -- 2.40.0