mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Fix a bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11000 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3fd88d01f
commit
28da03b0fe
@ -904,7 +904,7 @@ void ReachabilityCloner::merge(const DSNodeHandle &NH,
|
|||||||
DSNodeHandle &DestGNH = NodeMap[SrcGNH.getNode()];
|
DSNodeHandle &DestGNH = NodeMap[SrcGNH.getNode()];
|
||||||
assert(DestGNH.getNode()==NH.getNode() &&"Global mapping inconsistent");
|
assert(DestGNH.getNode()==NH.getNode() &&"Global mapping inconsistent");
|
||||||
Dest.getNodeForValue(GV).mergeWith(DSNodeHandle(DestGNH.getNode(),
|
Dest.getNodeForValue(GV).mergeWith(DSNodeHandle(DestGNH.getNode(),
|
||||||
DestGNH.getOffset()+NH.getOffset()));
|
DestGNH.getOffset()+SrcGNH.getOffset()));
|
||||||
|
|
||||||
if (CloneFlags & DSGraph::UpdateInlinedGlobals)
|
if (CloneFlags & DSGraph::UpdateInlinedGlobals)
|
||||||
Dest.getInlinedGlobals().insert(GV);
|
Dest.getInlinedGlobals().insert(GV);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user