Changeset b1e63ac5 for src/Concurrency
- Timestamp:
 - Jul 4, 2017, 9:40:16 AM (8 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
 - Children:
 - 208e5be
 - Parents:
 - 9c951e3 (diff), f7cb0bc (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
 - 
      
- 1 edited
 
- 
          
  src/Concurrency/Keywords.cc (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/Concurrency/Keywords.cc
r9c951e3 rb1e63ac5 65 65 FunctionDecl * forwardDeclare( StructDecl * ); 66 66 ObjectDecl * addField( StructDecl * ); 67 void addRoutines( StructDecl *,ObjectDecl *, FunctionDecl * );67 void addRoutines( ObjectDecl *, FunctionDecl * ); 68 68 69 69 virtual bool is_target( StructDecl * decl ) = 0; … … 247 247 void ConcurrentSueKeyword::visit(StructDecl * decl) { 248 248 Visitor::visit(decl); 249 if( decl->get_name() == type_name ) {249 if( decl->get_name() == type_name && decl->has_body() ) { 250 250 assert( !type_decl ); 251 251 type_decl = decl; … … 264 264 FunctionDecl * func = forwardDeclare( decl ); 265 265 ObjectDecl * field = addField( decl ); 266 addRoutines( decl,field, func );266 addRoutines( field, func ); 267 267 } 268 268 … … 359 359 } 360 360 361 void ConcurrentSueKeyword::addRoutines( StructDecl * decl,ObjectDecl * field, FunctionDecl * func ) {361 void ConcurrentSueKeyword::addRoutines( ObjectDecl * field, FunctionDecl * func ) { 362 362 CompoundStmt * statement = new CompoundStmt( noLabels ); 363 363 statement->push_back(  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.