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

Fixed Compiler.Emit in unspecialized comptime methods

This commit is contained in:
Brian Fiete 2025-02-01 06:34:47 -08:00
parent 03f5c418ed
commit 70c2131c18

View file

@ -6884,6 +6884,7 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
{
SetAndRestoreValue<BfMethodInstance*> prevMethodInstance(mCurModule->mCurMethodInstance, mCallerMethodInstance);
SetAndRestoreValue<BfTypeInstance*> prevTypeInstance(mCurModule->mCurTypeInstance, mCallerTypeInstance);
SetAndRestoreValue<bool> emitIgnoreWrites(ceModule->mBfIRBuilder->mIgnoreWrites, ignoreWrites.mPrevVal);
// int32 strInstAddr = *(int32*)((uint8*)stackPtr + 0);
// String emitStr;