Skip to content

Commit 9ea9e93

Browse files
authored
[MachinePipeliner] Fix elements being added while the list is iterated (#80805)
There is no need to add the elements of Objs twice, so the addition is removed.
1 parent 699c408 commit 9ea9e93

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,6 @@ static void getUnderlyingObjects(const MachineInstr *MI,
768768
Objs.clear();
769769
return;
770770
}
771-
Objs.push_back(V);
772771
}
773772
}
774773

0 commit comments

Comments
 (0)