mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
DbgGetCurrentLocation failover
This commit is contained in:
parent
715e2dcaf9
commit
7f480846ed
1 changed files with 4 additions and 1 deletions
|
@ -4897,7 +4897,10 @@ void BfIRCodeGen::HandleNextCmd()
|
||||||
break;
|
break;
|
||||||
case BfIRCmd_DbgGetCurrentLocation:
|
case BfIRCmd_DbgGetCurrentLocation:
|
||||||
{
|
{
|
||||||
SetResult(curId, mIRBuilder->getCurrentDebugLocation());
|
auto debugLoc = mIRBuilder->getCurrentDebugLocation();
|
||||||
|
if (!debugLoc)
|
||||||
|
debugLoc = mDebugLoc;
|
||||||
|
SetResult(curId, debugLoc);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BfIRCmd_DbgSetType:
|
case BfIRCmd_DbgSetType:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue