mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
switch InlineInfo.DevirtualizedCalls's list to be of WeakVH.
This fixes a bug where calls inlined into an invoke would get changed into an invoke but the array would keep pointing to the (now dead) call. The improved inliner behavior is still disabled for now. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -392,8 +392,10 @@ bool Inliner::runOnSCC(CallGraphSCC &SCC) {
|
||||
// onto our worklist to process. They are useful inline candidates.
|
||||
#if 0
|
||||
for (unsigned i = 0, e = InlineInfo.DevirtualizedCalls.size();
|
||||
i != e; ++i)
|
||||
CallSites.push_back(CallSite(InlineInfo.DevirtualizedCalls[i]));
|
||||
i != e; ++i) {
|
||||
Value *Ptr = InlineInfo.DevirtualizedCalls[i];
|
||||
CallSites.push_back(CallSite(Ptr));
|
||||
}
|
||||
#endif
|
||||
|
||||
// Update the cached cost info with the inlined call.
|
||||
|
||||
Reference in New Issue
Block a user