mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Fixed LifetimeSoftEnd
This commit is contained in:
parent
ccb1646990
commit
5d7a089ff8
1 changed files with 8 additions and 5 deletions
|
@ -13245,10 +13245,13 @@ void BeMCContext::DoCodeEmission()
|
||||||
if ((vregInfo != NULL) && (vregInfo->mDbgVariable != NULL))
|
if ((vregInfo != NULL) && (vregInfo->mDbgVariable != NULL))
|
||||||
{
|
{
|
||||||
auto dbgVar = vregInfo->mDbgVariable;
|
auto dbgVar = vregInfo->mDbgVariable;
|
||||||
dbgVar->mDeclEnd = funcCodePos;
|
if (dbgVar->mDeclStart != -1)
|
||||||
dbgVar->mDeclLifetimeExtend = false;
|
{
|
||||||
dbgVar->mDbgLifeEnded = true;
|
dbgVar->mDeclEnd = funcCodePos;
|
||||||
BF_ASSERT((uint)dbgVar->mDeclEnd >= (uint)dbgVar->mDeclStart);
|
dbgVar->mDeclLifetimeExtend = false;
|
||||||
|
dbgVar->mDbgLifeEnded = true;
|
||||||
|
BF_ASSERT((uint)dbgVar->mDeclEnd >= (uint)dbgVar->mDeclStart);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -16138,7 +16141,7 @@ void BeMCContext::Generate(BeFunction* function)
|
||||||
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
mDbgPreferredRegs[32] = X64Reg_R8;*/
|
||||||
|
|
||||||
//mDbgPreferredRegs[8] = X64Reg_RAX;
|
//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 == "?MethodA@TestProgram@BeefTest@bf@@CAXXZ");
|
||||||
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
// || (function->mName == "?Hey@Blurg@bf@@SAXXZ")
|
||||||
// ;
|
// ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue