1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Fix a bug handling globals that are constants, but are still external

llvm-svn: 12208
This commit is contained in:
Chris Lattner 2004-03-08 03:52:24 +00:00
parent a7180252e6
commit 1ae4150e31

View File

@ -1441,7 +1441,7 @@ void DSGraph::markIncompleteNodes(unsigned Flags) {
for (DSScalarMap::global_iterator I = ScalarMap.global_begin(),
E = ScalarMap.global_end(); I != E; ++I)
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
if (!GV->isConstant())
if (!GV->isConstant() || !GV->hasInitializer())
markIncompleteNode(ScalarMap[GV].getNode());
}