Skip to content

Commit 3d23b57

Browse files
committed
Fixups
1 parent 1f4858f commit 3d23b57

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
298298
TailCallReservedStack = bytes;
299299
}
300300

301-
void setStackSizeSVE(uint64_t ZPR, uint64_t PPR = 0) {
301+
void setStackSizeSVE(uint64_t ZPR, uint64_t PPR) {
302302
StackSizeZPR = ZPR;
303303
StackSizePPR = PPR;
304304
HasCalculatedStackSizeSVE = true;
@@ -409,7 +409,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
409409
}
410410

411411
// Saves the CalleeSavedStackSize for SVE vectors in 'scalable bytes'
412-
void setSVECalleeSavedStackSize(unsigned ZPR, unsigned PPR = 0) {
412+
void setSVECalleeSavedStackSize(unsigned ZPR, unsigned PPR) {
413413
ZPRCalleeSavedStackSize = ZPR;
414414
PPRCalleeSavedStackSize = PPR;
415415
HasSVECalleeSavedStackSize = true;
@@ -426,9 +426,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
426426
}
427427

428428
unsigned getSVECalleeSavedStackSize() const {
429-
assert(HasSVECalleeSavedStackSize &&
430-
"SVECalleeSavedStackSize has not been calculated");
431-
return PPRCalleeSavedStackSize + ZPRCalleeSavedStackSize;
429+
return getZPRCalleeSavedStackSize() + getPPRCalleeSavedStackSize();
432430
}
433431

434432
void incNumLocalDynamicTLSAccesses() { ++NumLocalDynamicTLSAccesses; }

0 commit comments

Comments
 (0)