summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/Stmt.h4
-rw-r--r--clang/lib/AST/Stmt.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h
index 834a3dc1c0f..bc5dabb5ac9 100644
--- a/clang/include/clang/AST/Stmt.h
+++ b/clang/include/clang/AST/Stmt.h
@@ -313,10 +313,10 @@ public:
// Only allow allocation of Stmts using the allocator in ASTContext
// or by doing a placement new.
void* operator new(size_t bytes, const ASTContext& C,
- unsigned alignment = 8) throw();
+ unsigned alignment = 8);
void* operator new(size_t bytes, const ASTContext* C,
- unsigned alignment = 8) throw();
+ unsigned alignment = 8);
void* operator new(size_t bytes, void* mem) throw() {
return mem;
diff --git a/clang/lib/AST/Stmt.cpp b/clang/lib/AST/Stmt.cpp
index 87e55a2fb9d..a80bd87d216 100644
--- a/clang/lib/AST/Stmt.cpp
+++ b/clang/lib/AST/Stmt.cpp
@@ -50,12 +50,12 @@ static StmtClassNameTable &getStmtInfoTableEntry(Stmt::StmtClass E) {
}
void *Stmt::operator new(size_t bytes, const ASTContext& C,
- unsigned alignment) throw() {
+ unsigned alignment) {
return ::operator new(bytes, C, alignment);
}
void *Stmt::operator new(size_t bytes, const ASTContext* C,
- unsigned alignment) throw() {
+ unsigned alignment) {
return ::operator new(bytes, *C, alignment);
}
OpenPOWER on IntegriCloud