stop using method.
authorChris Lattner <sabre@nondot.org>
Tue, 15 Mar 2005 05:19:49 +0000 (05:19 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Mar 2005 05:19:49 +0000 (05:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20603 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/ExtractFunction.cpp

index 482964e86f2c62fd7482340566111bff40cc47e8..2d291b7a8813eb570eadcd46586088eee9f00531 100644 (file)
@@ -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) {