diff options
| -rw-r--r-- | clang/include/clang/AST/Stmt.h | 4 | ||||
| -rw-r--r-- | clang/lib/AST/Stmt.cpp | 5 |
2 files changed, 3 insertions, 6 deletions
diff --git a/clang/include/clang/AST/Stmt.h b/clang/include/clang/AST/Stmt.h index bc5dabb5ac9..a968149a298 100644 --- a/clang/include/clang/AST/Stmt.h +++ b/clang/include/clang/AST/Stmt.h @@ -316,7 +316,9 @@ public: unsigned alignment = 8); void* operator new(size_t bytes, const ASTContext* C, - unsigned alignment = 8); + unsigned alignment = 8) { + return operator new(bytes, *C, alignment); + } 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 a80bd87d216..9b271c81acd 100644 --- a/clang/lib/AST/Stmt.cpp +++ b/clang/lib/AST/Stmt.cpp @@ -54,11 +54,6 @@ void *Stmt::operator new(size_t bytes, const ASTContext& C, return ::operator new(bytes, C, alignment); } -void *Stmt::operator new(size_t bytes, const ASTContext* C, - unsigned alignment) { - return ::operator new(bytes, *C, alignment); -} - const char *Stmt::getStmtClassName() const { return getStmtInfoTableEntry((StmtClass) StmtBits.sClass).Name; } |

