diff options
-rw-r--r-- | lib/VMCore/Metadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Metadata.cpp b/lib/VMCore/Metadata.cpp index 208e1bcedc..60ec1c5c6c 100644 --- a/lib/VMCore/Metadata.cpp +++ b/lib/VMCore/Metadata.cpp @@ -101,8 +101,8 @@ static std::vector<Value*> getValType(MDNode *N) { } MDNode::~MDNode() { - dropAllReferences(); getType()->getContext().pImpl->MDNodes.remove(this); + dropAllReferences(); } //===----------------------------------------------------------------------===// |