diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-08-18 17:45:38 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-08-18 17:45:38 +0000 |
commit | 5b3ebb4356ac62abd8767c4c3388b773d9d61802 (patch) | |
tree | be963f434718f33e4b965bd29336bf9d50eed3aa /include/clang/AST/Stmt.h | |
parent | c138ff58683565a0b7f29fd28ac8577710aa5751 (diff) | |
download | clang-5b3ebb4356ac62abd8767c4c3388b773d9d61802.tar.gz |
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
Diffstat (limited to 'include/clang/AST/Stmt.h')
-rw-r--r-- | include/clang/AST/Stmt.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/Stmt.h b/include/clang/AST/Stmt.h index 834a3dc1c0..bc5dabb5ac 100644 --- a/include/clang/AST/Stmt.h +++ b/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; |