Clear CachedFunctionInfo upon Pass::releaseMemory. Because ValueMap will abort
authorNick Lewycky <nicholas@mxc.ca>
Wed, 12 May 2010 21:48:15 +0000 (21:48 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Wed, 12 May 2010 21:48:15 +0000 (21:48 +0000)
commit9a1581b9102511282ee823ab9a29819bc060e6a5
tree0885d4ca5d9e5568f0b25ebd0b0d087bf9dfb9ea
parentbd4fa2efd373c46dc14b87744b908f16f539c836
Clear CachedFunctionInfo upon Pass::releaseMemory. Because ValueMap will abort
on RAUW of functions, this is a correctness issue instead of a mere memory
usage problem.

No testcase until the new MergeFunctions can land.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103653 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/InlineCost.h
lib/Analysis/InlineCost.cpp
lib/Transforms/IPO/InlineSimple.cpp