Skip to content

Commit 40d9fdc

Browse files
committed
Fixups
1 parent bea06eb commit 40d9fdc

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
@@ -286,7 +286,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
286286
TailCallReservedStack = bytes;
287287
}
288288

289-
void setStackSizeSVE(uint64_t ZPR, uint64_t PPR = 0) {
289+
void setStackSizeSVE(uint64_t ZPR, uint64_t PPR) {
290290
StackSizeZPR = ZPR;
291291
StackSizePPR = PPR;
292292
HasCalculatedStackSizeSVE = true;
@@ -397,7 +397,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
397397
}
398398

399399
// Saves the CalleeSavedStackSize for SVE vectors in 'scalable bytes'
400-
void setSVECalleeSavedStackSize(unsigned ZPR, unsigned PPR = 0) {
400+
void setSVECalleeSavedStackSize(unsigned ZPR, unsigned PPR) {
401401
ZPRCalleeSavedStackSize = ZPR;
402402
PPRCalleeSavedStackSize = PPR;
403403
HasSVECalleeSavedStackSize = true;
@@ -414,9 +414,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
414414
}
415415

416416
unsigned getSVECalleeSavedStackSize() const {
417-
assert(HasSVECalleeSavedStackSize &&
418-
"SVECalleeSavedStackSize has not been calculated");
419-
return PPRCalleeSavedStackSize + ZPRCalleeSavedStackSize;
417+
return getZPRCalleeSavedStackSize() + getPPRCalleeSavedStackSize();
420418
}
421419

422420
void incNumLocalDynamicTLSAccesses() { ++NumLocalDynamicTLSAccesses; }

0 commit comments

Comments
 (0)