mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Fix a bug handling globals that are constants, but are still external
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12208 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9b3c702614
commit
d84d3501c6
@ -1441,7 +1441,7 @@ void DSGraph::markIncompleteNodes(unsigned Flags) {
|
|||||||
for (DSScalarMap::global_iterator I = ScalarMap.global_begin(),
|
for (DSScalarMap::global_iterator I = ScalarMap.global_begin(),
|
||||||
E = ScalarMap.global_end(); I != E; ++I)
|
E = ScalarMap.global_end(); I != E; ++I)
|
||||||
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
|
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
|
||||||
if (!GV->isConstant())
|
if (!GV->isConstant() || !GV->hasInitializer())
|
||||||
markIncompleteNode(ScalarMap[GV].getNode());
|
markIncompleteNode(ScalarMap[GV].getNode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user