Ignore:
Timestamp:
Jan 24, 2025, 1:19:52 PM (8 months ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
master
Children:
1fb0a883
Parents:
9e72bae3
Message:

Improved code generation for intermediate steps. Now generates using @= on the approprate initializers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r9e72bae3 rf070ea8  
    251251
    252252        if ( decl->init ) {
    253                 output << " = ";
     253                bool isGenericInit = options.genC || decl->init->maybeConstructed;
     254                output << ( (isGenericInit) ? " = " : " @= " );
    254255                decl->init->accept( *visitor );
    255256        }
Note: See TracChangeset for help on using the changeset viewer.