mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Fix a minor bug handling incomplete programs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12105 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c4ebdcea7a
commit
76a9eb3e40
@ -185,7 +185,7 @@ DSGraph::DSGraph(const TargetData &td, Function &F, DSGraph *GG)
|
||||
for (DSScalarMap::global_iterator I = ScalarMap.global_begin();
|
||||
I != ScalarMap.global_end(); ++I)
|
||||
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(*I))
|
||||
if (GV->isConstant())
|
||||
if (!GV->isExternal() && GV->isConstant())
|
||||
RC.merge(ScalarMap[GV], GG->ScalarMap[GV]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user