[llvm-commits] [llvm] r61870 - /llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
Duncan Sands
baldrick at free.fr
Wed Jan 7 10:45:53 PST 2009
Author: baldrick
Date: Wed Jan 7 12:45:53 2009
New Revision: 61870
URL: http://llvm.org/viewvc/llvm-project?rev=61870&view=rev
Log:
The verifier checks that the aliasee is not null.
Modified:
llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
Modified: llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp?rev=61870&r1=61869&r2=61870&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/GlobalDCE.cpp Wed Jan 7 12:45:53 2009
@@ -161,8 +161,7 @@
MarkUsedGlobalsAsNeeded(GV->getInitializer());
} else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(G)) {
// The target of a global alias is needed.
- if (Constant *Aliasee = GA->getAliasee())
- MarkUsedGlobalsAsNeeded(Aliasee);
+ MarkUsedGlobalsAsNeeded(GA->getAliasee());
} else {
// Otherwise this must be a function object. We have to scan the body of
// the function looking for constants and global values which are used as
More information about the llvm-commits
mailing list