diff options
author | Chris Lattner <sabre@nondot.org> | 2006-11-09 23:17:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-11-09 23:17:45 +0000 |
commit | 924f4fee8b8a22ca52b08d312d6e782b901a677b (patch) | |
tree | fc9ef0129f18aea74dab932d388ba06835ec83f9 /llvm/lib/Transforms | |
parent | 51b07256a368d6752fb80e09523054a3dfc3096a (diff) | |
download | bcm5719-llvm-924f4fee8b8a22ca52b08d312d6e782b901a677b.tar.gz bcm5719-llvm-924f4fee8b8a22ca52b08d312d6e782b901a677b.zip |
Minimal patch to fix PR992/PR993
llvm-svn: 31608
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/IPO/Inliner.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/Inliner.cpp b/llvm/lib/Transforms/IPO/Inliner.cpp index edb34be203f..b7c4ce1f1ff 100644 --- a/llvm/lib/Transforms/IPO/Inliner.cpp +++ b/llvm/lib/Transforms/IPO/Inliner.cpp @@ -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; |