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:
parent
a7180252e6
commit
1ae4150e31
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user