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

DbgGetCurrentLocation failover

This commit is contained in:
Brian Fiete 2024-05-21 09:53:37 -04:00
parent 715e2dcaf9
commit 7f480846ed

View file

@ -4897,7 +4897,10 @@ void BfIRCodeGen::HandleNextCmd()
break;
case BfIRCmd_DbgGetCurrentLocation:
{
SetResult(curId, mIRBuilder->getCurrentDebugLocation());
auto debugLoc = mIRBuilder->getCurrentDebugLocation();
if (!debugLoc)
debugLoc = mDebugLoc;
SetResult(curId, debugLoc);
}
break;
case BfIRCmd_DbgSetType: