[llvm-commits] CVS: llvm/lib/Transforms/IPO/ExtractFunction.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 14 21:20:02 PST 2005
Changes in directory llvm/lib/Transforms/IPO:
ExtractFunction.cpp updated: 1.11 -> 1.12
---
Log message:
stop using method.
---
Diffs of the changes: (+1 -1)
ExtractFunction.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/IPO/ExtractFunction.cpp
diff -u llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.11 llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.12
--- llvm/lib/Transforms/IPO/ExtractFunction.cpp:1.11 Mon Mar 14 22:54:20 2005
+++ llvm/lib/Transforms/IPO/ExtractFunction.cpp Mon Mar 14 23:19:49 2005
@@ -63,7 +63,7 @@
// can be "used", instead of ones with bodies.
std::vector<Function*> NewFunctions;
- Function *Last = &M.back(); // Figure out where the last real fn is...
+ Function *Last = --M.end(); // Figure out where the last real fn is.
for (Module::iterator I = M.begin(); ; ++I) {
if (&*I != Named) {
More information about the llvm-commits
mailing list