mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
Correctly clone FlaggedNodes.
llvm-svn: 48196
This commit is contained in:
parent
2f3648b261
commit
2a3aeb1f72
@ -69,8 +69,7 @@ static void CheckForPhysRegDependency(SDNode *Def, SDNode *Use, unsigned Op,
|
||||
|
||||
SUnit *ScheduleDAG::Clone(SUnit *Old) {
|
||||
SUnit *SU = NewSUnit(Old->Node);
|
||||
for (unsigned i = 0, e = SU->FlaggedNodes.size(); i != e; ++i)
|
||||
SU->FlaggedNodes.push_back(SU->FlaggedNodes[i]);
|
||||
SU->FlaggedNodes = Old->FlaggedNodes;
|
||||
SU->InstanceNo = SUnitMap[Old->Node].size();
|
||||
SU->Latency = Old->Latency;
|
||||
SU->isTwoAddress = Old->isTwoAddress;
|
||||
|
Loading…
Reference in New Issue
Block a user