Changeset 679864e1
- Timestamp:
- Oct 7, 2015, 12:31:28 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
- 242d458
- Parents:
- b0be06ac
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
rb0be06ac r679864e1 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sun May 17 12:17:01 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Jul 24 17:33:54201513 // Update Count : 1 7811 // Last Modified By : Rob Schluntz 12 // Last Modified On : Tue Sep 15 16:24:07 2015 13 // Update Count : 181 14 14 // 15 15 … … 407 407 } else if ( StructInstType * st = dynamic_cast< StructInstType * >( initContext ) ) { 408 408 resolveAggrInit( st->get_baseStruct(), iter, end ); 409 } else if ( UnionInstType * st = dynamic_cast< UnionInstType * >( initContext ) ) {409 } else if ( UnionInstType * st = dynamic_cast< UnionInstType * >( initContext ) ) { 410 410 resolveAggrInit( st->get_baseUnion(), iter, end ); 411 } else if ( TypeInstType * tt = dynamic_cast< TypeInstType * >( initContext ) ) { 412 // try again... 413 initContext = tt->get_baseType()->get_base(); 414 visit(listInit); 411 415 } else { 416 assert( dynamic_cast< BasicType * >( initContext ) ); 412 417 // basic types are handled here 413 418 Visitor::visit( listInit ); -
src/SymTab/Validate.cc
rb0be06ac r679864e1 10 10 // Created On : Sun May 17 21:50:04 2015 11 11 // Last Modified By : Rob Schluntz 12 // Last Modified On : Wed Aug 05 14:00:24201513 // Update Count : 19512 // Last Modified On : Tue Oct 06 15:40:35 2015 13 // Update Count : 219 14 14 // 15 15 … … 183 183 184 184 typedef std::map< std::string, std::pair< TypedefDecl *, int > > TypedefMap; 185 typedef std::map< std::string, TypeDecl * > TypeDeclMap; 185 186 TypedefMap typedefNames; 187 TypeDeclMap typedeclNames; 186 188 int scopeLevel; 187 189 }; … … 839 841 delete typeInst; 840 842 return ret; 843 } else { 844 TypeDeclMap::const_iterator base = typedeclNames.find( typeInst->get_name() ); 845 assert( base != typedeclNames.end() ); 846 typeInst->set_baseType( base->second->clone() ); 841 847 } // if 842 848 return typeInst; … … 880 886 typedefNames.erase( i ) ; 881 887 } // if 888 889 typedeclNames[ typeDecl->get_name() ] = typeDecl; 882 890 return typeDecl; 883 891 }
Note: See TracChangeset
for help on using the changeset viewer.