Changes in src/Concurrency/Keywords.cc [3cc1111:080d2d7]
- File:
-
- 1 edited
-
src/Concurrency/Keywords.cc (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Keywords.cc
r3cc1111 r080d2d7 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.