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 {
827
827
828
828
ArrayRef<MachineBasicBlock *> getSavePoints () const { return SavePoints; }
829
829
void setSavePoints (ArrayRef<MachineBasicBlock *> NewSavePoints) {
830
- SavePoints = SmallVector<MachineBasicBlock *> (NewSavePoints);
830
+ SavePoints. assign (NewSavePoints. begin (), NewSavePoints. end () );
831
831
}
832
832
ArrayRef<MachineBasicBlock *> getRestorePoints () const {
833
833
return RestorePoints;
834
834
}
835
835
void setRestorePoints (ArrayRef<MachineBasicBlock *> NewRestorePoints) {
836
- RestorePoints = SmallVector<MachineBasicBlock *> (NewRestorePoints);
836
+ RestorePoints. assign (NewRestorePoints. begin (), NewRestorePoints. end () );
837
837
}
838
838
839
839
static SmallVector<MachineBasicBlock *> constructSaveRestorePoints (
You can’t perform that action at this time.
0 commit comments