Changeset 704d11e for src/Parser/DeclarationNode.cc
- Timestamp:
- Jun 14, 2018, 5:35:09 PM (6 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.cc
rc5d7701 r704d11e 1003 1003 * out++ = dwt; 1004 1004 } 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 ); 1006 1006 auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr ); 1007 1007 obj->location = cur->location; … … 1009 1009 delete agg; 1010 1010 } 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 ); 1012 1012 auto obj = new ObjectDecl( "", Type::StorageClasses(), linkage, nullptr, inst, nullptr ); 1013 1013 obj->location = cur->location;
Note: See TracChangeset
for help on using the changeset viewer.