Remove throw() from Stmt::operator new so the compiler will omit the null check on the result since ASTContext allocator won't return null.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188641 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/Stmt.cpp b/lib/AST/Stmt.cpp
index 87e55a2..a80bd87 100644
--- a/lib/AST/Stmt.cpp
+++ b/lib/AST/Stmt.cpp
@@ -50,12 +50,12 @@
}
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);
}