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 | 5a050016bb8e33f8e53b1fe05de7adb8ff00d4aa (patch) | |
| tree | 24663325641d03505268588139862b0f1e885cb8 /clang/lib | |
| parent | d27858932960f74bf05223bf63d398f1143a8830 (diff) | |
| download | bcm5719-llvm-5a050016bb8e33f8e53b1fe05de7adb8ff00d4aa.tar.gz bcm5719-llvm-5a050016bb8e33f8e53b1fe05de7adb8ff00d4aa.zip | |
Remove throw() from Stmt::operator new so the compiler will omit the null check on the result since ASTContext allocator won't return null.
llvm-svn: 188641
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/AST/Stmt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |

