From: Eli Friedman Date: Thu, 19 Aug 2010 06:13:01 +0000 (+0000) Subject: Remove default argument from operator delete; per report on cfe-dev, fixes X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a87cdc03f4014545a8440110c1f4f68701100576;p=clang Remove default argument from operator delete; per report on cfe-dev, fixes compilation with MSVC. Note that on other platforms, the operator delete in question is never used because we compile with -fno-exceptions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111514 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Attr.h b/include/clang/AST/Attr.h index 4242493024..62ca49fbf3 100644 --- a/include/clang/AST/Attr.h +++ b/include/clang/AST/Attr.h @@ -78,7 +78,7 @@ public: return ::operator new(Bytes, C, Alignment); } void operator delete(void *Ptr, ASTContext &C, - size_t Alignment = 16) throw() { + size_t Alignment) throw() { return ::operator delete(Ptr, C, Alignment); }