Changeset 1fb0a883 for src/CodeGen


Ignore:
Timestamp:
Jan 24, 2025, 3:00:27 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
2a5345b, 35eef3b
Parents:
1cc5c6a (diff), f070ea8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Peter A. Buhr <pabuhr@…> (01/24/25 14:53:59)
git-committer:
Peter A. Buhr <pabuhr@…> (01/24/25 15:00:27)
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cpp

    r1cc5c6a r1fb0a883  
    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.