diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-21 18:01:42 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-21 18:01:42 +0000 |
commit | d9c86dc6d95885f0c88f8068a06eab87da328490 (patch) | |
tree | 2f661b32d65955aba6ec8faafff81b580259d652 /include | |
parent | 1ec7f5feb30e5cd63772e0c97d51cae00b0af7c5 (diff) | |
download | external_llvm-d9c86dc6d95885f0c88f8068a06eab87da328490.zip external_llvm-d9c86dc6d95885f0c88f8068a06eab87da328490.tar.gz external_llvm-d9c86dc6d95885f0c88f8068a06eab87da328490.tar.bz2 |
Use TrackingVH instead of WeakVH for NamedMDNode's operands, since nodes
referenced by NamedMDNodes shouldn't be deleted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Metadata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Metadata.h b/include/llvm/Metadata.h index 64ab6b7..7cfcb70 100644 --- a/include/llvm/Metadata.h +++ b/include/llvm/Metadata.h @@ -185,7 +185,7 @@ class NamedMDNode : public Value, public ilist_node<NamedMDNode> { std::string Name; Module *Parent; - void *Operands; // SmallVector<WeakVH<MDNode>, 4> + void *Operands; // SmallVector<TrackingVH<MDNode>, 4> void setParent(Module *M) { Parent = M; } protected: |