[AsmPrinter] Destroy allocated DIEAbbrevs on teardown.
authorBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 May 2015 12:55:43 +0000 (12:55 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Thu, 28 May 2015 12:55:43 +0000 (12:55 +0000)
commit331b719b2b093d2e3a0c22dd074ecd65d54e3631
tree5cd8dbcd9f4c837d4e9cf46120f17cdb3ed36d5f
parent1af0c40934f5b08772213aad2e99638330f5cf81
[AsmPrinter] Destroy allocated DIEAbbrevs on teardown.

DIEAbbrev contains a SmallVector that can leak for overly large abbrevs. They
used to be owned by the DIE, but after the recent refactoring DWARFFile
allocates its own abbrevs.

Leak found by asan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238418 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfFile.cpp