Changeset d9c8a59


Ignore:
Timestamp:
Mar 22, 2017, 5:21:38 PM (8 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, 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.