diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2007-04-29 18:02:48 +0000 |
commit | c6c98af9e5814e8066c82f20ca11cf646a5fc289 (patch) | |
tree | 386170515eb43b2c98aa6240bed797d17406313c /lib/Transforms/IPO/GlobalDCE.cpp | |
parent | ee181bc899d06c642f27e6a5157e61a5079d0acd (diff) | |
download | llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.tar.gz llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.tar.bz2 llvm-c6c98af9e5814e8066c82f20ca11cf646a5fc289.tar.xz |
Implement review feedback
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/GlobalDCE.cpp')
-rw-r--r-- | lib/Transforms/IPO/GlobalDCE.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp index 90150689cc..56879e2b13 100644 --- a/lib/Transforms/IPO/GlobalDCE.cpp +++ b/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 |