File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
llvm/include/llvm/CodeGen Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -827,13 +827,13 @@ class MachineFrameInfo {
827827
828828 ArrayRef<MachineBasicBlock *> getSavePoints () const { return SavePoints; }
829829 void setSavePoints (ArrayRef<MachineBasicBlock *> NewSavePoints) {
830- SavePoints = SmallVector<MachineBasicBlock *> (NewSavePoints);
830+ SavePoints. assign (NewSavePoints. begin (), NewSavePoints. end () );
831831 }
832832 ArrayRef<MachineBasicBlock *> getRestorePoints () const {
833833 return RestorePoints;
834834 }
835835 void setRestorePoints (ArrayRef<MachineBasicBlock *> NewRestorePoints) {
836- RestorePoints = SmallVector<MachineBasicBlock *> (NewRestorePoints);
836+ RestorePoints. assign (NewRestorePoints. begin (), NewRestorePoints. end () );
837837 }
838838
839839 static SmallVector<MachineBasicBlock *> constructSaveRestorePoints (
You can’t perform that action at this time.
0 commit comments