IR: Delete GenericDwarfNode during teardown
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 01:18:32 +0000 (01:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 20 Jan 2015 01:18:32 +0000 (01:18 +0000)
commit47ddb76984521c2c62398dc454bcbdcf0a806005
tree3d7474f207355c013d97b5aa15762d07140966d0
parent022707e65abe47644f0aa27d69bd3d641ddfdc1b
IR: Delete GenericDwarfNode during teardown

Fix a leak in `LLVMContextImpl` teardown that the leak sanitizer tracked
down [1].  I've just switched to automatic dispatch here (since I'll
inevitably forget again with the next class).

[1]: http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/811/steps/check-llvm%20asan/logs/stdio

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226536 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/LLVMContextImpl.cpp