From 89141201bbf75b3e56c8bba1fa5189971a4a6e9b Mon Sep 17 00:00:00 2001 From: ens-sc Date: Tue, 12 Aug 2025 17:33:09 +0300 Subject: [PATCH] [llvm] add explicit size for SmallVector containing SaveRestore points --- llvm/include/llvm/CodeGen/MachineFrameInfo.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineFrameInfo.h b/llvm/include/llvm/CodeGen/MachineFrameInfo.h index 35af5fbce61ea..85ceb2a7cf3eb 100644 --- a/llvm/include/llvm/CodeGen/MachineFrameInfo.h +++ b/llvm/include/llvm/CodeGen/MachineFrameInfo.h @@ -827,16 +827,16 @@ class MachineFrameInfo { ArrayRef getSavePoints() const { return SavePoints; } void setSavePoints(ArrayRef NewSavePoints) { - SavePoints = SmallVector(NewSavePoints); + SavePoints = SmallVector(NewSavePoints); } ArrayRef getRestorePoints() const { return RestorePoints; } void setRestorePoints(ArrayRef NewRestorePoints) { - RestorePoints = SmallVector(NewRestorePoints); + RestorePoints = SmallVector(NewRestorePoints); } - static SmallVector constructSaveRestorePoints( + static SmallVector constructSaveRestorePoints( ArrayRef SRPoints, const DenseMap &BBMap) { SmallVector Pts;