]> granicus.if.org Git - clang/commitdiff
Explicitly delete a function that is supposed to never be called.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 2 Oct 2015 00:46:58 +0000 (00:46 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 2 Oct 2015 00:46:58 +0000 (00:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@249113 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/TemplateBase.h

index 73b667ce1b60a2cc96d0a7641c06363d08301e61..07e70cae1e24a8d0c65125a064a32de385b11600 100644 (file)
@@ -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() {}