Fix object array member init regression
This commit is contained in:
parent
163354b33e
commit
f7b00eff95
|
@ -51356,7 +51356,7 @@ bool NativeCodeProcedure::MapFastParamsToTemps(void)
|
|||
}
|
||||
|
||||
NativeCodeBasicBlock* block = mEntryBlock;
|
||||
while (block && block->mIns.Size() == 0 && !block->mFalseJump)
|
||||
while (block && block->mIns.Size() == 0 && !block->mFalseJump && block->mTrueJump != block)
|
||||
block = block->mTrueJump;
|
||||
|
||||
if (block && block->mNumEntries == 1)
|
||||
|
|
|
@ -2209,11 +2209,11 @@ void Parser::PrependMemberConstructor(Declaration* pthis, Declaration* cfunc)
|
|||
}
|
||||
else
|
||||
{
|
||||
qexp->mDecType = bdec;
|
||||
qexp->mDecType = dec->mBase;
|
||||
|
||||
dexp = new Expression(mScanner->mLocation, EX_INITIALIZATION);
|
||||
dexp->mToken = TK_ASSIGN;
|
||||
dexp->mDecType = bdec;
|
||||
dexp->mDecType = dec->mBase;
|
||||
dexp->mLeft = qexp;
|
||||
dexp->mRight = dec->mValue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue