Instead of defining the operator delete() function, it is better to delete the functi...
authorAaron Ballman <aaron@aaronballman.com>
Tue, 22 Sep 2015 21:00:35 +0000 (21:00 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Tue, 22 Sep 2015 21:00:35 +0000 (21:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248320 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/YAMLParser.h

index b02f2ace215853c295247a05ec0e28863f7bfae2..b056ab6c1ce28eb93438736509d025a6d89313a3 100644 (file)
@@ -158,7 +158,7 @@ protected:
   std::unique_ptr<Document> &Doc;
   SMRange SourceRange;
 
-  void operator delete(void *) LLVM_NOEXCEPT {}
+  void operator delete(void *) LLVM_NOEXCEPT = delete;
 
   ~Node() = default;