diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-03 17:31:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-03 17:31:50 +0000 |
commit | fb523e16dd1f860ff02a3ae03e5e3e25327a5860 (patch) | |
tree | 98214fd21e88962c419d0cf88fe709d4e3d18a37 | |
parent | c83cb1beddb6dab1226ea88c60a0f1e2263f6d48 (diff) |
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
-rw-r--r-- | include/clang/AST/ASTContext.h | 2 | ||||
-rw-r--r-- | 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 |