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)
commit408f5a25fa762c5094895bcd5019e481fcd8905f
tree87783fdc002be6c377717e435783eae6ba4c9979
parentdb6bc8bfdf1a8ae412667d9c96883545ddc02800
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

llvm-svn: 226536
llvm/lib/IR/LLVMContextImpl.cpp