diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-15 05:19:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-15 05:19:49 +0000 |
commit | feb15508249fd47694fe68027f39f7494053e884 (patch) | |
tree | d5f6b4e9ad74b75bd2f40e4dfbaa0fd53f29fa32 /lib/Transforms/IPO/ExtractFunction.cpp | |
parent | 77d69243046ec25bb740fad39c14409d022368a4 (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/IPO/ExtractFunction.cpp')
-rw-r--r-- | lib/Transforms/IPO/ExtractFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/ExtractFunction.cpp b/lib/Transforms/IPO/ExtractFunction.cpp index 482964e86f..2d291b7a88 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) { |