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

Debug Break,SafeBreak,IsDebuggerPresent. [NoDebug]

This commit is contained in:
Brian Fiete 2020-10-10 07:08:30 -07:00
parent 42a361a8c0
commit 06f6c41679
6 changed files with 43 additions and 1 deletions

View file

@ -17337,6 +17337,11 @@ void BeMCContext::Generate(BeFunction* function)
vregInfo->mIsExpr = true;
}
break;
case BfIRIntrinsic_DebugTrap:
{
AllocInst(BeMCInstKind_DbgBreak);
}
break;
case BfIRIntrinsic_MemSet:
{
if (auto constVal = BeValueDynCast<BeConstant>(castedInst->mArgs[1].mValue))