[ModuleInliner] Properly delete dead functions
authorArthur Eubanks <aeubanks@google.com>
Wed, 12 Jan 2022 17:55:16 +0000 (09:55 -0800)
committerArthur Eubanks <aeubanks@google.com>
Wed, 12 Jan 2022 17:57:43 +0000 (09:57 -0800)
commitfe827a93f69ddea80308d63a6b54b17106779354
treea7c7c83afd18de3ac12ed06cb6cc6d20a00efe64
parent3a32d2e74e5c03d97a41ef7b0a01f206af62ad4f
[ModuleInliner] Properly delete dead functions

Followup to D116964 where we only did this in the CGSCC inliner.
Fixes leaks reported in D116964.
llvm/lib/Transforms/IPO/ModuleInliner.cpp