Changeset 9f5ecf5 for src/Concurrency/Keywords.cc
- Timestamp:
- Sep 13, 2017, 2:14:55 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, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- e3e16bc
- Parents:
- 9dcb653
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r9dcb653 r9f5ecf5 259 259 //============================================================================================= 260 260 void ConcurrentSueKeyword::postvisit(StructDecl * decl) { 261 if( decl-> get_name() == type_name && decl->has_body()) {261 if( decl->name == type_name && decl->body ) { 262 262 assert( !type_decl ); 263 263 type_decl = decl; … … 270 270 271 271 void ConcurrentSueKeyword::handle( StructDecl * decl ) { 272 if( ! decl-> has_body()) return;272 if( ! decl->body ) return; 273 273 274 274 if( !type_decl ) throw SemanticError( context_error, decl ); … … 418 418 void MutexKeyword::postvisit(StructDecl* decl) { 419 419 420 if( decl-> get_name()== "monitor_desc" ) {420 if( decl->name == "monitor_desc" ) { 421 421 assert( !monitor_decl ); 422 422 monitor_decl = decl; 423 423 } 424 else if( decl-> get_name()== "monitor_guard_t" ) {424 else if( decl->name == "monitor_guard_t" ) { 425 425 assert( !guard_decl ); 426 426 guard_decl = decl; … … 524 524 //============================================================================================= 525 525 void ThreadStarter::postvisit(FunctionDecl * decl) { 526 if( ! CodeGen::isConstructor(decl-> get_name()) ) return;526 if( ! CodeGen::isConstructor(decl->name) ) return; 527 527 528 528 DeclarationWithType * param = decl->get_functionType()->get_parameters().front();
Note: See TracChangeset
for help on using the changeset viewer.