Changes in src/Concurrency/Keywords.cc [080d2d7:3cc1111]
- File:
-
- 1 edited
-
src/Concurrency/Keywords.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r080d2d7 r3cc1111 422 422 ; 423 423 else if ( auto param = isMainFor( decl, cast_target ) ) { 424 if ( !vtable_decl ) { 425 SemanticError( decl, context_error ); 426 } 424 // This should never trigger. 425 assert( vtable_decl ); 427 426 // Should be safe because of isMainFor. 428 427 StructInstType * struct_type = static_cast<StructInstType *>( … … 1204 1203 //new TypeofType( noQualifiers, args.front()->clone() ) 1205 1204 new TypeofType( noQualifiers, new UntypedExpr( 1206 new NameExpr( "__get_ mutexstmt_lock_type" ),1205 new NameExpr( "__get_type" ), 1207 1206 { args.front()->clone() } 1208 1207 ) … … 1216 1215 map_range < std::list<Initializer*> > ( args, [](Expression * var ){ 1217 1216 return new SingleInit( new UntypedExpr( 1218 new NameExpr( "__get_ mutexstmt_lock_ptr" ),1217 new NameExpr( "__get_ptr" ), 1219 1218 { var } 1220 1219 ) ); … … 1227 1226 TypeExpr * lock_type_expr = new TypeExpr( 1228 1227 new TypeofType( noQualifiers, new UntypedExpr( 1229 new NameExpr( "__get_ mutexstmt_lock_type" ),1228 new NameExpr( "__get_type" ), 1230 1229 { args.front()->clone() } 1231 1230 )
Note:
See TracChangeset
for help on using the changeset viewer.