1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Added comptype

This commit is contained in:
Brian Fiete 2021-01-15 14:28:21 -08:00
parent bb12a4ec20
commit 4890303508
27 changed files with 382 additions and 157 deletions

View file

@ -3420,8 +3420,8 @@ void BfModule::VisitCodeBlock(BfBlock* block)
}
else
child->Accept(this);
mSystem->CheckLockYield();
mContext->CheckLockYield();
++itr;
}
@ -3437,7 +3437,7 @@ void BfModule::VisitCodeBlock(BfBlock* block)
//??
auto moduleMethodInstance = GetLocalMethodInstance(localMethod, BfTypeVector(), NULL, true);
}
mSystem->CheckLockYield();
mContext->CheckLockYield();
}
while ((int)mCurMethodState->mLocalMethods.size() > startLocalMethod)
@ -4967,7 +4967,11 @@ void BfModule::Visit(BfReturnStatement* returnStmt)
BfType* expectingReturnType = retType;
if ((expectingReturnType != NULL) && (expectingReturnType->IsVar()))
expectingReturnType = NULL;
{
NOP;
// expectingReturnType = NULL;
}
BfType* origType;
BfExprEvaluator exprEvaluator(this);