Skip to content

Commit 850e40a

Browse files
committed
Fix comment for packed unwind.
1 parent 7a2580a commit 850e40a

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/lib/MC/MCWin64EH.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1040,9 +1040,6 @@ static bool tryARM64PackedUnwind(WinEH::FrameInfo *info, uint32_t FuncLength,
10401040
case Win64EH::UOP_SaveAnyRegDPX:
10411041
case Win64EH::UOP_SaveAnyRegQX:
10421042
case Win64EH::UOP_SaveAnyRegQPX:
1043-
case Win64EH::UOP_AllocZ:
1044-
case Win64EH::UOP_SaveZReg:
1045-
case Win64EH::UOP_SavePReg:
10461043
// These are never canonical; they don't show up with the usual Arm64
10471044
// calling convention.
10481045
return false;
@@ -1055,6 +1052,11 @@ static bool tryARM64PackedUnwind(WinEH::FrameInfo *info, uint32_t FuncLength,
10551052
// "add x29, sp, #N" doesn't show up in the canonical pattern (except for
10561053
// N=0, which is UOP_SetFP).
10571054
return false;
1055+
case Win64EH::UOP_AllocZ:
1056+
case Win64EH::UOP_SaveZReg:
1057+
case Win64EH::UOP_SavePReg:
1058+
// Canonical prologues don't support spilling SVE registers.
1059+
return false;
10581060
case Win64EH::UOP_TrapFrame:
10591061
case Win64EH::UOP_Context:
10601062
case Win64EH::UOP_ECContext:

0 commit comments

Comments
 (0)