summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/ExtractGV.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-21 01:08:07 +0000
committerDan Gohman <gohman@apple.com>2008-10-21 01:08:07 +0000
commitfa29b67aee84204b74f111e07e5ab7fea241f4ce (patch)
treed55c4107b0e26f3358d414dfefa40306b2fbf687 /llvm/lib/Transforms/IPO/ExtractGV.cpp
parent8ab23ade80712ec35dab6ff39031509effa939c8 (diff)
downloadbcm5719-llvm-fa29b67aee84204b74f111e07e5ab7fea241f4ce.tar.gz
bcm5719-llvm-fa29b67aee84204b74f111e07e5ab7fea241f4ce.zip
Fix a bug that prevented llvm-extract -delete from working.
llvm-svn: 57864
Diffstat (limited to 'llvm/lib/Transforms/IPO/ExtractGV.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/ExtractGV.cpp2
1 files changed, 1 insertions, 1 deletions
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<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
OpenPOWER on IntegriCloud