diff options
Diffstat (limited to 'llvm/lib/Transforms/IPO/GlobalDCE.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/GlobalDCE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/GlobalDCE.cpp b/llvm/lib/Transforms/IPO/GlobalDCE.cpp index 90150689cc8..56879e2b136 100644 --- a/llvm/lib/Transforms/IPO/GlobalDCE.cpp +++ b/llvm/lib/Transforms/IPO/GlobalDCE.cpp @@ -76,7 +76,7 @@ bool GlobalDCE::runOnModule(Module &M) { for (Module::alias_iterator I = M.alias_begin(), E = M.alias_end(); I != E; ++I) { // Aliases are always needed even if they are not used. - MarkUsedGlobalsAsNeeded(cast<Constant>(I->getAliasee())); + MarkUsedGlobalsAsNeeded(I->getAliasee()); } // Now that all globals which are needed are in the AliveGlobals set, we loop |

