From fa29b67aee84204b74f111e07e5ab7fea241f4ce Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 21 Oct 2008 01:08:07 +0000 Subject: Fix a bug that prevented llvm-extract -delete from working. llvm-svn: 57864 --- llvm/lib/Transforms/IPO/ExtractGV.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') diff --git a/llvm/lib/Transforms/IPO/ExtractGV.cpp b/llvm/lib/Transforms/IPO/ExtractGV.cpp index d409b6e8067..79e51d0332c 100644 --- a/llvm/lib/Transforms/IPO/ExtractGV.cpp +++ b/llvm/lib/Transforms/IPO/ExtractGV.cpp @@ -52,7 +52,7 @@ namespace { bool deleteGV() { for (std::vector::iterator GI = Named.begin(), GE = Named.end(); GI != GE; ++GI) { - if (Function* NamedFunc = dyn_cast(&*GI)) { + if (Function* NamedFunc = dyn_cast(*GI)) { // If we're in relinking mode, set linkage of all internal callees to // external. This will allow us extract function, and then - link // everything together -- cgit v1.2.3