[llvm-commits] CVS: llvm/lib/Transforms/IPO/Inliner.cpp
Chris Lattner
sabre at nondot.org
Thu Nov 9 15:18:02 PST 2006
Changes in directory llvm/lib/Transforms/IPO:
Inliner.cpp updated: 1.30 -> 1.31
---
Log message:
Minimal patch to fix PR992: http://llvm.org/PR992 /PR993: http://llvm.org/PR993
---
Diffs of the changes: (+1 -2)
Inliner.cpp | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)
Index: llvm/lib/Transforms/IPO/Inliner.cpp
diff -u llvm/lib/Transforms/IPO/Inliner.cpp:1.30 llvm/lib/Transforms/IPO/Inliner.cpp:1.31
--- llvm/lib/Transforms/IPO/Inliner.cpp:1.30 Thu Nov 2 14:25:50 2006
+++ llvm/lib/Transforms/IPO/Inliner.cpp Thu Nov 9 17:17:45 2006
@@ -132,8 +132,7 @@
// 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;
More information about the llvm-commits
mailing list