From 9800f4ca6e381fd475e54b1a9c7dade3b8742e98 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Tue, 22 Sep 2015 21:00:35 +0000 Subject: [PATCH] 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 --- include/llvm/Support/YAMLParser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1