diff options
-rw-r--r-- | include/llvm/DerivedTypes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/DerivedTypes.h b/include/llvm/DerivedTypes.h index 0f1e99f134..acb28deada 100644 --- a/include/llvm/DerivedTypes.h +++ b/include/llvm/DerivedTypes.h @@ -190,6 +190,10 @@ class StructType : public CompositeType { /// void *SymbolTableEntry; public: + ~StructType() { + delete [] ContainedTys; // Delete the body. + } + /// StructType::createNamed - This creates a named struct with no body /// specified. If the name is empty, it creates an unnamed struct, which has /// a unique identity but no actual name. |