mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed a module extension issue with mIRFunction not being cleared
This commit is contained in:
parent
07a8e1fe23
commit
d7da98444e
7 changed files with 71 additions and 66 deletions
|
@ -4125,6 +4125,8 @@ BfIRFunction BfIRBuilder::CreateFunction(BfIRFunctionType funcType, BfIRLinkageT
|
|||
return fakeVal;
|
||||
}
|
||||
|
||||
BF_ASSERT(mModule->mIsModuleMutable);
|
||||
|
||||
BfIRFunction retVal = WriteCmd(BfIRCmd_CreateFunction, funcType, (uint8)linkageType, name);
|
||||
NEW_CMD_INSERTED_IRVALUE;
|
||||
mFunctionMap[name] = retVal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue