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 | 6cb4559369bcc350689ee6b6411346a0fa4bc503 (patch) | |
tree | 4b799ba836339794dfa7bbebddcc3e1f52ad5a79 /llvm/lib/Transforms/IPO/ExtractFunction.cpp | |
parent | bc18ef02ce68387d75d50cf43910563216358795 (diff) | |
download | bcm5719-llvm-6cb4559369bcc350689ee6b6411346a0fa4bc503.tar.gz bcm5719-llvm-6cb4559369bcc350689ee6b6411346a0fa4bc503.zip |
stop using method.
llvm-svn: 20603
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ExtractFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index 482964e86f2..2d291b7a881 100644 --- a/llvm/lib/Transforms/IPO/ExtractFunction.cpp +++ b/llvm/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) { |