mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00:00
The verifier checks that the aliasee is not null.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2fa781169
commit
b18715acb5
@ -161,8 +161,7 @@ void GlobalDCE::GlobalIsNeeded(GlobalValue *G) {
|
|||||||
MarkUsedGlobalsAsNeeded(GV->getInitializer());
|
MarkUsedGlobalsAsNeeded(GV->getInitializer());
|
||||||
} else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(G)) {
|
} else if (GlobalAlias *GA = dyn_cast<GlobalAlias>(G)) {
|
||||||
// The target of a global alias is needed.
|
// The target of a global alias is needed.
|
||||||
if (Constant *Aliasee = GA->getAliasee())
|
MarkUsedGlobalsAsNeeded(GA->getAliasee());
|
||||||
MarkUsedGlobalsAsNeeded(Aliasee);
|
|
||||||
} else {
|
} else {
|
||||||
// Otherwise this must be a function object. We have to scan the body of
|
// 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
|
// the function looking for constants and global values which are used as
|
||||||
|
Loading…
x
Reference in New Issue
Block a user