mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-28 21:34:23 +00:00
Delete StructType bodies when destroying a StructType.
Leak found by valgrind. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dc89561fec
commit
a1f17f8395
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user