summaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-15 05:19:49 +0000
committerChris Lattner <sabre@nondot.org>2005-03-15 05:19:49 +0000
commitfeb15508249fd47694fe68027f39f7494053e884 (patch)
treed5f6b4e9ad74b75bd2f40e4dfbaa0fd53f29fa32 /lib/Transforms
parent77d69243046ec25bb740fad39c14409d022368a4 (diff)
stop using method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/IPO/ExtractFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/ExtractFunction.cpp b/lib/Transforms/IPO/ExtractFunction.cpp
index 482964e86f2..2d291b7a881 100644
--- a/lib/Transforms/IPO/ExtractFunction.cpp
+++ b/lib/Transforms/IPO/ExtractFunction.cpp
@@ -63,7 +63,7 @@ namespace {
// 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) {