From 5432909aa664ad17c2ba600b7e044a5df991064e Mon Sep 17 00:00:00 2001 From: William Chen Date: Wed, 31 Mar 2021 14:08:42 -0700 Subject: [PATCH] Remove incorrect assert for agg struct parameter check --- src/mapleall/maple_be/src/cg/aarch64/aarch64_abi.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/mapleall/maple_be/src/cg/aarch64/aarch64_abi.cpp b/src/mapleall/maple_be/src/cg/aarch64/aarch64_abi.cpp index b1cb6dabc4..11db2be0d0 100644 --- a/src/mapleall/maple_be/src/cg/aarch64/aarch64_abi.cpp +++ b/src/mapleall/maple_be/src/cg/aarch64/aarch64_abi.cpp @@ -501,9 +501,6 @@ int32 ParmLocator::ProcessPtyAggWhenLocateNextParm(MIRType &mirType, PLocInfo &p * either all single fp or all double fp, then it can be passed by float-float. */ AArch64ArgumentClass classes[kMaxRegCount] = { kAArch64NoClass }; -#if DEBUG - int32 saveIntParmNum = nextGeneralRegNO; -#endif typeSize = beCommon.GetTypeSize(mirType.GetTypeIndex().GetIdx()); int32 aggCopySize = 0; if (typeSize > k16ByteSize) { @@ -534,7 +531,6 @@ int32 ParmLocator::ProcessPtyAggWhenLocateNextParm(MIRType &mirType, PLocInfo &p CHECK_FATAL(false, "param passing in FP reg not allowed here"); } else { pLoc.reg0 = AllocateGPRegister(); - ASSERT(nextGeneralRegNO == saveIntParmNum, "RegNo should be saved pramRegNO"); /* Rule C.11 */ ASSERT((pLoc.reg0 != kRinvalid) || (nextGeneralRegNO == AArch64Abi::kNumIntParmRegs), "reg0 should not be kRinvalid or nextGeneralRegNO should equal kNumIntParmRegs"); -- Gitee