Changeset d9c8a59


Ignore:
Timestamp:
Mar 22, 2017, 5:21:38 PM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
ccd8bc3
Parents:
a53e10a
Message:

Now generating names for anonymous unions properly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CodeGen/CodeGenerator.cc

    ra53e10a rd9c8a59  
    147147
    148148        void CodeGenerator::visit( ObjectDecl * objectDecl ) {
     149                if (objectDecl->get_name().empty()) {
     150                        static UniqueName name = { "__anonymous_object" };
     151                        objectDecl->set_name( name.newName() );
     152                }
     153
    149154                extension( objectDecl );
    150155                genAttributes( objectDecl->get_attributes() );
Note: See TracChangeset for help on using the changeset viewer.