r188645 - Revert r188644 to unbreak buildbots.

Craig Topper craig.topper at gmail.com
Sun Aug 18 13:38:37 PDT 2013


Author: ctopper
Date: Sun Aug 18 15:38:37 2013
New Revision: 188645

URL: http://llvm.org/viewvc/llvm-project?rev=188645&view=rev
Log:
Revert r188644 to unbreak buildbots.

Modified:
    cfe/trunk/include/clang/AST/Stmt.h
    cfe/trunk/lib/AST/Stmt.cpp

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=188645&r1=188644&r2=188645&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Sun Aug 18 15:38:37 2013
@@ -315,6 +315,9 @@ public:
   void* operator new(size_t bytes, const ASTContext& C,
                      unsigned alignment = 8);
 
+  void* operator new(size_t bytes, const ASTContext* C,
+                     unsigned alignment = 8);
+
   void* operator new(size_t bytes, void* mem) throw() {
     return mem;
   }

Modified: cfe/trunk/lib/AST/Stmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Stmt.cpp?rev=188645&r1=188644&r2=188645&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Stmt.cpp (original)
+++ cfe/trunk/lib/AST/Stmt.cpp Sun Aug 18 15:38:37 2013
@@ -54,6 +54,11 @@ void *Stmt::operator new(size_t bytes, 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;
 }





More information about the cfe-commits mailing list