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

Fixed initializer blocks on valueless structs

This commit is contained in:
Brian Fiete 2025-02-23 15:53:23 -08:00
parent 68edae2a35
commit 1805316b70

View file

@ -18951,7 +18951,7 @@ void BfModule::EmitCtorBody(bool& skipBody)
auto diVariable = mBfIRBuilder->DbgCreateAutoVariable(mCurMethodState->mCurScope->mDIScope,
"this", mCurFilePosition.mFileInstance->mDIFile, mCurFilePosition.mCurLine, mBfIRBuilder->DbgGetType(thisType));
//
if (!mCurTypeInstance->IsValuelessType())
{
auto loadedThis = GetThis();