diff --git a/lib/Transforms/IPO/ExtractGV.cpp b/lib/Transforms/IPO/ExtractGV.cpp index d409b6e8067..79e51d0332c 100644 --- a/lib/Transforms/IPO/ExtractGV.cpp +++ b/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