mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed build paths, added comparison warnings, other misc fixes
This commit is contained in:
parent
dae5c6cee4
commit
f4c252048e
19 changed files with 231 additions and 49 deletions
|
@ -1631,7 +1631,8 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
|
|||
localDef->mValue = initValue.mValue;
|
||||
if ((localDef->mAddr) && (!localDef->mResolvedType->IsValuelessType()))
|
||||
{
|
||||
wantsStore = true;
|
||||
if (!initValue.mType->IsVar())
|
||||
wantsStore = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -5448,7 +5449,7 @@ void BfModule::Visit(BfForEachStatement* forEachStmt)
|
|||
else if (isVarEnumerator)
|
||||
{
|
||||
// Generic method or mixin decl
|
||||
BF_ASSERT(mBfIRBuilder->mIgnoreWrites);
|
||||
BF_ASSERT(mBfIRBuilder->mIgnoreWrites || mHadVarUsage);
|
||||
}
|
||||
else if (!target.mType->IsTypeInstance())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue