1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed LifetimeSoftEnd

This commit is contained in:
Brian Fiete 2022-06-16 07:28:06 -07:00
parent ccb1646990
commit 5d7a089ff8

View file

@ -13245,12 +13245,15 @@ void BeMCContext::DoCodeEmission()
if ((vregInfo != NULL) && (vregInfo->mDbgVariable != NULL))
{
auto dbgVar = vregInfo->mDbgVariable;
if (dbgVar->mDeclStart != -1)
{
dbgVar->mDeclEnd = funcCodePos;
dbgVar->mDeclLifetimeExtend = false;
dbgVar->mDbgLifeEnded = true;
BF_ASSERT((uint)dbgVar->mDeclEnd >= (uint)dbgVar->mDeclStart);
}
}
}
break;
case BeMCInstKind_ValueScopeSoftEnd:
break;
@ -16138,7 +16141,7 @@ void BeMCContext::Generate(BeFunction* function)
mDbgPreferredRegs[32] = X64Reg_R8;*/
//mDbgPreferredRegs[8] = X64Reg_RAX;
mDebugging = (function->mName == "?NumberToString@NumberFormatter@System@bf@@SAXUStringView@23@HPEAVIFormatProvider@23@PEAVString@23@@Z");
//mDebugging = (function->mName == "?NumberToString@NumberFormatter@System@bf@@SAXUStringView@23@HPEAVIFormatProvider@23@PEAVString@23@@Z");
// || (function->mName == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
// ;