Changeset b16923d
- Timestamp:
- Jun 26, 2018, 4:26: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:
- 450805a
- Parents:
- 3fd8b0e
- git-author:
- Rob Schluntz <rschlunt@…> (06/26/18 16:25:30)
- git-committer:
- Rob Schluntz <rschlunt@…> (06/26/18 16:26:09)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SymTab/Validate.cc
r3fd8b0e rb16923d 77 77 class SwitchStmt; 78 78 79 #define debugPrint( x ) if ( doDebug ) { std::cout << x; }79 #define debugPrint( x ) if ( doDebug ) x 80 80 81 81 namespace SymTab { … … 207 207 typedef std::unique_ptr<TypedefDecl> TypedefDeclPtr; 208 208 typedef ScopedMap< std::string, std::pair< TypedefDeclPtr, int > > TypedefMap; 209 typedef std::map< std::string, TypeDecl * > TypeDeclMap; 209 typedef std::map< std::string, TypeDecl * > TypeDeclMap; // xxx - convert to ScopedMap 210 210 TypedefMap typedefNames; 211 211 TypeDeclMap typedeclNames; … … 561 561 void LinkReferenceToTypes::postvisit( EnumDecl *enumDecl ) { 562 562 // visit enum members first so that the types of self-referencing members are updated properly 563 if ( ! enumDecl->members.empty()) {563 if ( enumDecl->body ) { 564 564 ForwardEnumsType::iterator fwds = forwardEnums.find( enumDecl->name ); 565 565 if ( fwds != forwardEnums.end() ) { … … 601 601 // visit struct members first so that the types of self-referencing members are updated properly 602 602 // xxx - need to ensure that type parameters match up between forward declarations and definition (most importantly, number of type parameters and their defaults) 603 if ( ! structDecl->members.empty()) {603 if ( structDecl->body ) { 604 604 ForwardStructsType::iterator fwds = forwardStructs.find( structDecl->name ); 605 605 if ( fwds != forwardStructs.end() ) { … … 613 613 614 614 void LinkReferenceToTypes::postvisit( UnionDecl *unionDecl ) { 615 if ( ! unionDecl->members.empty()) {615 if ( unionDecl->body ) { 616 616 ForwardUnionsType::iterator fwds = forwardUnions.find( unionDecl->name ); 617 617 if ( fwds != forwardUnions.end() ) {
Note: See TracChangeset
for help on using the changeset viewer.