Ignore:
Timestamp:
Jun 14, 2018, 5:35:09 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
47498bd
Parents:
c5d7701
Message:

Minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/DeclarationNode.cc

    rc5d7701 r704d11e  
    10031003                                        * out++ = dwt;
    10041004                                } else if ( StructDecl * agg = dynamic_cast< StructDecl * >( decl ) ) {
    1005                                         StructInstType * inst = new StructInstType( Type::Qualifiers(), agg->get_name() );
     1005                                        StructInstType * inst = new StructInstType( Type::Qualifiers(), agg->name );
    10061006                                        auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr );
    10071007                                        obj->location = cur->location;
     
    10091009                                        delete agg;
    10101010                                } else if ( UnionDecl * agg = dynamic_cast< UnionDecl * >( decl ) ) {
    1011                                         UnionInstType * inst = new UnionInstType( Type::Qualifiers(), agg->get_name() );
     1011                                        UnionInstType * inst = new UnionInstType( Type::Qualifiers(), agg->name );
    10121012                                        auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr );
    10131013                                        obj->location = cur->location;
Note: See TracChangeset for help on using the changeset viewer.