Changeset d672350 for src/Concurrency/Keywords.cc
- Timestamp:
- Mar 21, 2022, 1:44:06 PM (4 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- a76202d
- Parents:
- ef3c383 (diff), dbe2533 (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
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
ref3c383 rd672350 422 422 ; 423 423 else if ( auto param = isMainFor( decl, cast_target ) ) { 424 // This should never trigger. 425 assert( vtable_decl ); 424 if ( !vtable_decl ) { 425 SemanticError( decl, context_error ); 426 } 426 427 // Should be safe because of isMainFor. 427 428 StructInstType * struct_type = static_cast<StructInstType *>( … … 1203 1204 //new TypeofType( noQualifiers, args.front()->clone() ) 1204 1205 new TypeofType( noQualifiers, new UntypedExpr( 1205 new NameExpr( "__get_ type" ),1206 new NameExpr( "__get_mutexstmt_lock_type" ), 1206 1207 { args.front()->clone() } 1207 1208 ) … … 1215 1216 map_range < std::list<Initializer*> > ( args, [](Expression * var ){ 1216 1217 return new SingleInit( new UntypedExpr( 1217 new NameExpr( "__get_ ptr" ),1218 new NameExpr( "__get_mutexstmt_lock_ptr" ), 1218 1219 { var } 1219 1220 ) ); … … 1226 1227 TypeExpr * lock_type_expr = new TypeExpr( 1227 1228 new TypeofType( noQualifiers, new UntypedExpr( 1228 new NameExpr( "__get_ type" ),1229 new NameExpr( "__get_mutexstmt_lock_type" ), 1229 1230 { args.front()->clone() } 1230 1231 )
Note:
See TracChangeset
for help on using the changeset viewer.