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 {
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; }
You can’t perform that action at this time.
0 commit comments