projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d444879
)
Minimal patch to fix PR992/PR993
author
Chris Lattner
<sabre@nondot.org>
Thu, 9 Nov 2006 23:17:45 +0000
(23:17 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 9 Nov 2006 23:17:45 +0000
(23:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31608
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/Inliner.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/Inliner.cpp
b/lib/Transforms/IPO/Inliner.cpp
index edb34be203fc0c662d7f10f9dbb03f349ce79e65..b7c4ce1f1ff44a396c27e448f422fcda75142c12 100644
(file)
--- a/
lib/Transforms/IPO/Inliner.cpp
+++ b/
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;