Changeset 704d11e
- Timestamp:
 - Jun 14, 2018, 5:35:09 PM (7 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
 - Location:
 - src/Parser
 - Files:
 - 
      
- 2 edited
 
- 
          
  DeclarationNode.cc (modified) (2 diffs)
 - 
          
  TypeData.cc (modified) (1 diff)
 
 
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;  - 
      
src/Parser/TypeData.cc
rc5d7701 r704d11e 893 893 assert( td->kind == TypeData::Function ); 894 894 FunctionType * ft = new FunctionType( buildQualifiers( td ), ! td->function.params || td->function.params->hasEllipsis ); 895 buildList( td->function.params, ft-> get_parameters());896 buildForall( td->forall, ft-> get_forall());895 buildList( td->function.params, ft->parameters ); 896 buildForall( td->forall, ft->forall ); 897 897 if ( td->base ) { 898 898 switch ( td->base->kind ) { 899 899 case TypeData::Tuple: 900 buildList( td->base->tuple, ft-> get_returnVals());900 buildList( td->base->tuple, ft->returnVals ); 901 901 break; 902 902 default:  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.