diff options
author | Chris Lattner <sabre@nondot.org> | 2011-07-13 04:22:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-07-13 04:22:39 +0000 |
commit | 68ef6943821861614e446fdcc5cf150369419834 (patch) | |
tree | 6523ddb77007112b7383512ad19801ded4eebd60 /llvm/lib/VMCore/LLVMContextImpl.h | |
parent | 3517f14219fc7028a7cde6c283e262200bbc5e95 (diff) | |
download | bcm5719-llvm-68ef6943821861614e446fdcc5cf150369419834.tar.gz bcm5719-llvm-68ef6943821861614e446fdcc5cf150369419834.zip |
stop leaking all named struct types with an empty name. Thanks
to Benjamin Kramer for steering me in the right direction here.
llvm-svn: 135031
Diffstat (limited to 'llvm/lib/VMCore/LLVMContextImpl.h')
-rw-r--r-- | llvm/lib/VMCore/LLVMContextImpl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/LLVMContextImpl.h b/llvm/lib/VMCore/LLVMContextImpl.h index e36864b27b5..b26068d85f7 100644 --- a/llvm/lib/VMCore/LLVMContextImpl.h +++ b/llvm/lib/VMCore/LLVMContextImpl.h @@ -179,6 +179,7 @@ public: std::map<std::vector<Type*>, FunctionType*> FunctionTypes; std::map<std::vector<Type*>, StructType*> AnonStructTypes; StringMap<StructType*> NamedStructTypes; + SmallPtrSet<StructType*, 16> EmptyNamedStructTypes; unsigned NamedStructTypesUniqueID; DenseMap<std::pair<Type *, uint64_t>, ArrayType*> ArrayTypes; |