From: Aaron Ballman Date: Tue, 22 Sep 2015 21:00:35 +0000 (+0000) Subject: Instead of defining the operator delete() function, it is better to delete the functi... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9800f4ca6e381fd475e54b1a9c7dade3b8742e98;p=oota-llvm.git Instead of defining the operator delete() function, it is better to delete the function so that any uses (even from within Node or its subclasses) do not accidentally call it. NFC intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248320 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/YAMLParser.h b/include/llvm/Support/YAMLParser.h index b02f2ace215..b056ab6c1ce 100644 --- a/include/llvm/Support/YAMLParser.h +++ b/include/llvm/Support/YAMLParser.h @@ -158,7 +158,7 @@ protected: std::unique_ptr &Doc; SMRange SourceRange; - void operator delete(void *) LLVM_NOEXCEPT {} + void operator delete(void *) LLVM_NOEXCEPT = delete; ~Node() = default;