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