[cfe-commits] r68391 - in /cfe/trunk/include/clang/AST: ASTContext.h Stmt.h

Chris Lattner sabre at nondot.org
Fri Apr 3 10:31:52 PDT 2009


Author: lattner
Date: Fri Apr  3 12:31:50 2009
New Revision: 68391

URL: http://llvm.org/viewvc/llvm-project?rev=68391&view=rev
Log:
fix some warnings on VC++, patch by John Thompson!

Modified:
    cfe/trunk/include/clang/AST/ASTContext.h
    cfe/trunk/include/clang/AST/Stmt.h

Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=68391&r1=68390&r2=68391&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Fri Apr  3 12:31:50 2009
@@ -758,7 +758,7 @@
 /// invoking it directly; see the new operator for more details. This operator
 /// is called implicitly by the compiler if a placement new expression using
 /// the ASTContext throws in the object constructor.
-inline void operator delete(void *Ptr, clang::ASTContext &C)
+inline void operator delete(void *Ptr, clang::ASTContext &C, size_t)
               throw () {
   C.Deallocate(Ptr);
 }

Modified: cfe/trunk/include/clang/AST/Stmt.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Stmt.h?rev=68391&r1=68390&r2=68391&view=diff

==============================================================================
--- cfe/trunk/include/clang/AST/Stmt.h (original)
+++ cfe/trunk/include/clang/AST/Stmt.h Fri Apr  3 12:31:50 2009
@@ -131,9 +131,10 @@
     return mem;
   }
 
-  void operator delete(void*, ASTContext& C) throw() { }
-  void operator delete(void*, ASTContext& C, unsigned alignment) throw() { }
+  void operator delete(void*, ASTContext&, unsigned) throw() { }
+  void operator delete(void*, ASTContext*, unsigned) throw() { }
   void operator delete(void*, std::size_t) throw() { }
+  void operator delete(void*, void*) throw() { }
 
 protected:
   /// DestroyChildren - Invoked by destructors of subclasses of Stmt to





More information about the cfe-commits mailing list