From: Chris Lattner Date: Tue, 15 Mar 2005 05:19:49 +0000 (+0000) Subject: stop using method. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=feb15508249fd47694fe68027f39f7494053e884;p=oota-llvm.git stop using method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20603 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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 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) {