1
0
Fork 0
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:
Brian Fiete 2019-09-07 06:38:56 -07:00
parent 07a8e1fe23
commit d7da98444e
7 changed files with 71 additions and 66 deletions

View file

@ -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;