From 6cb4559369bcc350689ee6b6411346a0fa4bc503 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Mar 2005 05:19:49 +0000 Subject: [PATCH] stop using method. llvm-svn: 20603 --- llvm/lib/Transforms/IPO/ExtractFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/IPO/ExtractFunction.cpp b/llvm/lib/Transforms/IPO/ExtractFunction.cpp index 482964e86f2c..2d291b7a8813 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 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) {