- tested and fixed the regular assignment statement for both local and member variables.

The generated object code can definitely use an optimization pass but that's something left for later when more things are working. Right now it creates one opcode more than necessary for all member accesses (instead of using the offset in the store command it calculates an actual address of the variable in another address register) and can create one too many for non-constant expressions being assigned to local variables (a move between two registers because the emitted expression on the right hand side does not know that it can emit to the actual variable's register.)
This commit is contained in:
Christoph Oelckers 2016-10-21 10:09:01 +02:00
commit 1450c3dffb
4 changed files with 40 additions and 35 deletions

View file

@ -682,6 +682,10 @@ void FFunctionBuildList::Build()
for (auto &item : mItems)
{
if (item.PrintableName.CompareNoCase("Middle.StateFunction.3") == 0)
{
int a = 0;
}
assert(item.Code != NULL);
// We don't know the return type in advance for anonymous functions.