From: Richard Smith Date: Fri, 2 Oct 2015 00:46:58 +0000 (+0000) Subject: Explicitly delete a function that is supposed to never be called. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=297e40f30ddfa2a8377d956f27a8b1b5124e2f34;p=clang Explicitly delete a function that is supposed to never be called. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249113 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/TemplateBase.h b/include/clang/AST/TemplateBase.h index 73b667ce1b..07e70cae1e 100644 --- a/include/clang/AST/TemplateBase.h +++ b/include/clang/AST/TemplateBase.h @@ -520,7 +520,7 @@ class TemplateArgumentListInfo { // This can leak if used in an AST node, use ASTTemplateArgumentListInfo // instead. - void* operator new(size_t bytes, ASTContext& C); + void *operator new(size_t bytes, ASTContext &C) = delete; public: TemplateArgumentListInfo() {}