mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Linux fixes
This commit is contained in:
parent
e4fa6776a8
commit
08e3f9155e
4 changed files with 7 additions and 7 deletions
|
@ -51,7 +51,7 @@ public:
|
|||
{
|
||||
int size = 0;
|
||||
int checkNode = mHead;
|
||||
while (checkNode != NULL)
|
||||
while (checkNode != -1)
|
||||
{
|
||||
size++;
|
||||
checkNode = CH_REL_TO_ABS(checkNode)->mNext;
|
||||
|
|
|
@ -5488,7 +5488,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, BfMethodInstance*
|
|||
{
|
||||
BfTypeCode loweredRetType = BfTypeCode_None;
|
||||
BfTypeCode loweredRetType2 = BfTypeCode_None;
|
||||
if (methodInstance->GetLoweredReturnType(&loweredRetType, &loweredRetType2))
|
||||
if ((!IsConstEval()) && (methodInstance->GetLoweredReturnType(&loweredRetType, &loweredRetType2)))
|
||||
{
|
||||
auto retVal = mModule->CreateAlloca(methodInstance->mReturnType);
|
||||
BfIRType loweredIRType = mModule->GetIRLoweredType(loweredRetType, loweredRetType2);
|
||||
|
|
|
@ -15546,7 +15546,7 @@ void BfModule::SetupIRMethod(BfMethodInstance* methodInstance, BfIRFunction func
|
|||
BfType* resolvedTypeRef2 = NULL;
|
||||
String paramName;
|
||||
bool isSplattable = false;
|
||||
bool tryLowering = true;
|
||||
bool tryLowering = !mIsConstModule;
|
||||
if (isThis)
|
||||
{
|
||||
paramName = "this";
|
||||
|
|
|
@ -3909,11 +3909,11 @@ bool CeMachine::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
|
||||
if (sleepMS > 200)
|
||||
{
|
||||
Sleep(200);
|
||||
BfpThread_Sleep(200);
|
||||
sleepMS -= 200;
|
||||
continue;
|
||||
}
|
||||
Sleep(sleepMS);
|
||||
BfpThread_Sleep(sleepMS);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -5292,7 +5292,7 @@ void CeMachine::PrepareFunction(CeFunction* ceFunction, CeBuilder* parentBuilder
|
|||
ceBuilder.mCeFunction = ceFunction;
|
||||
ceBuilder.Build();
|
||||
|
||||
if (!ceFunction->mCode.IsEmpty())
|
||||
/*if (!ceFunction->mCode.IsEmpty())
|
||||
{
|
||||
CeDumpContext dumpCtx;
|
||||
dumpCtx.mCeFunction = ceFunction;
|
||||
|
@ -5302,7 +5302,7 @@ void CeMachine::PrepareFunction(CeFunction* ceFunction, CeBuilder* parentBuilder
|
|||
dumpCtx.Dump();
|
||||
|
||||
OutputDebugStrF("Code for %s:\n%s\n", ceBuilder.mBeFunction->mName.c_str(), dumpCtx.mStr.c_str());
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
void CeMachine::MapFunctionId(CeFunction* ceFunction)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue