aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/clang/AST/ASTContext.h2
-rw-r--r--include/clang/AST/Stmt.h5
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