mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Handle fakevals in SetActiveFunction
This commit is contained in:
parent
36a592d7a9
commit
fa1749b516
1 changed files with 5 additions and 2 deletions
|
@ -5487,10 +5487,13 @@ void BfIRBuilder::SetActiveFunction(BfIRFunction func)
|
|||
if (mActiveFunctionHasBody)
|
||||
mNumFunctionsWithBodies++;
|
||||
|
||||
WriteCmd(BfIRCmd_SetActiveFunction, func);
|
||||
mActiveFunction = func;
|
||||
mActiveFunctionHasBody = false;
|
||||
NEW_CMD_INSERTED;
|
||||
if (!func.IsFake())
|
||||
{
|
||||
WriteCmd(BfIRCmd_SetActiveFunction, func);
|
||||
NEW_CMD_INSERTED;
|
||||
}
|
||||
}
|
||||
|
||||
BfIRFunction BfIRBuilder::GetActiveFunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue