Skip to content

Commit aff6b88

Browse files
committed
Add hazard padding error.
1 parent eb08324 commit aff6b88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,9 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
19141914
bool FPAfterSVECalleeSaves =
19151915
Subtarget.isTargetWindows() && AFI->getSVECalleeSavedStackSize();
19161916

1917+
if (FPAfterSVECalleeSaves && AFI->hasStackHazardSlotIndex())
1918+
reportFatalUsageError("SME hazard padding is not supported on Windows");
1919+
19171920
auto PrologueSaveSize = AFI->getCalleeSavedStackSize() + FixedObject;
19181921
// All of the remaining stack allocations are for locals.
19191922
AFI->setLocalStackSize(NumBytes - PrologueSaveSize);

0 commit comments

Comments
 (0)