]> granicus.if.org Git - llvm/commit
[PM] Clear any analyses for a dead function after inlining it and before
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jan 2017 07:03:41 +0000 (07:03 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jan 2017 07:03:41 +0000 (07:03 +0000)
commitb9bbdd037b735457fc698abb2b7c0c0e2db32e89
tree6a9629aea335d59621df7ee3e912f809a9a802c7
parentd894e4c5d5e84a95da4ccd03c5ffed16bc943996
[PM] Clear any analyses for a dead function after inlining it and before
clearing its body. This is essential to avoid triggering asserting value
handles in analyses on the function's body.

I'm working on a test case for this behavior in LLVM, but Clang has
a great one that managed to trigger this on all of the bots already.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292770 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/Inliner.cpp