File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -298,7 +298,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
298
298
TailCallReservedStack = bytes;
299
299
}
300
300
301
- void setStackSizeSVE (uint64_t ZPR, uint64_t PPR = 0 ) {
301
+ void setStackSizeSVE (uint64_t ZPR, uint64_t PPR) {
302
302
StackSizeZPR = ZPR;
303
303
StackSizePPR = PPR;
304
304
HasCalculatedStackSizeSVE = true ;
@@ -409,7 +409,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
409
409
}
410
410
411
411
// Saves the CalleeSavedStackSize for SVE vectors in 'scalable bytes'
412
- void setSVECalleeSavedStackSize (unsigned ZPR, unsigned PPR = 0 ) {
412
+ void setSVECalleeSavedStackSize (unsigned ZPR, unsigned PPR) {
413
413
ZPRCalleeSavedStackSize = ZPR;
414
414
PPRCalleeSavedStackSize = PPR;
415
415
HasSVECalleeSavedStackSize = true ;
@@ -426,9 +426,7 @@ class AArch64FunctionInfo final : public MachineFunctionInfo {
426
426
}
427
427
428
428
unsigned getSVECalleeSavedStackSize () const {
429
- assert (HasSVECalleeSavedStackSize &&
430
- " SVECalleeSavedStackSize has not been calculated" );
431
- return PPRCalleeSavedStackSize + ZPRCalleeSavedStackSize;
429
+ return getZPRCalleeSavedStackSize () + getPPRCalleeSavedStackSize ();
432
430
}
433
431
434
432
void incNumLocalDynamicTLSAccesses () { ++NumLocalDynamicTLSAccesses; }
You can’t perform that action at this time.
0 commit comments