diff options
-rw-r--r-- | lib/Transforms/IPO/ExtractGV.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/ExtractGV.cpp b/lib/Transforms/IPO/ExtractGV.cpp index d409b6e806..79e51d0332 100644 --- a/lib/Transforms/IPO/ExtractGV.cpp +++ b/lib/Transforms/IPO/ExtractGV.cpp @@ -52,7 +52,7 @@ namespace { bool deleteGV() { for (std::vector<GlobalValue*>::iterator GI = Named.begin(), GE = Named.end(); GI != GE; ++GI) { - if (Function* NamedFunc = dyn_cast<Function>(&*GI)) { + if (Function* NamedFunc = dyn_cast<Function>(*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 |