1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Minimal patch to fix PR992/PR993

llvm-svn: 31608
This commit is contained in:
Chris Lattner 2006-11-09 23:17:45 +00:00
parent a6a6d83b1a
commit 23d3dac40a

View File

@ -132,8 +132,7 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &SCC) {
// Attempt to inline the function...
if (InlineCallIfPossible(CS, CG, SCCFunctions)) {
// Remove this call site from the list.
std::swap(CallSites[CSi], CallSites.back());
CallSites.pop_back();
CallSites.erase(CallSites.begin()+CSi);
--CSi;
++NumInlined;