OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2fa781
)
The verifier checks that the aliasee is not null.
author
Duncan Sands
<baldrick@free.fr>
Wed, 7 Jan 2009 18:45:53 +0000
(18:45 +0000)
committer
Duncan Sands
<baldrick@free.fr>
Wed, 7 Jan 2009 18:45:53 +0000
(18:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61870
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/GlobalDCE.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/GlobalDCE.cpp
b/lib/Transforms/IPO/GlobalDCE.cpp
index
654a509
..
a9c9ec0
100644
(file)
--- a/
lib/Transforms/IPO/GlobalDCE.cpp
+++ b/
lib/Transforms/IPO/GlobalDCE.cpp
@@
-161,8
+161,7
@@
void GlobalDCE::GlobalIsNeeded(GlobalValue *G) {
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