Skip to content

Commit

Permalink
Instead of defining the operator delete() function, it is better to d…
Browse files Browse the repository at this point in the history
…elete 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
  • Loading branch information
AaronBallman committed Sep 22, 2015
1 parent 45b0eeb commit 9800f4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/llvm/Support/YAMLParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class Node {
std::unique_ptr<Document> &Doc;
SMRange SourceRange;

void operator delete(void *) LLVM_NOEXCEPT {}
void operator delete(void *) LLVM_NOEXCEPT = delete;

~Node() = default;

Expand Down

0 comments on commit 9800f4c

Please sign in to comment.