Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r3cc1111 r080d2d7  
    422422                        ;
    423423                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                        }
    426427                        // Should be safe because of isMainFor.
    427428                        StructInstType * struct_type = static_cast<StructInstType *>(
     
    12031204                                        //new TypeofType( noQualifiers, args.front()->clone() )
    12041205                                        new TypeofType( noQualifiers, new UntypedExpr(
    1205                                                         new NameExpr( "__get_type" ),
     1206                                                        new NameExpr( "__get_mutexstmt_lock_type" ),
    12061207                                                        { args.front()->clone() }
    12071208                                                )
     
    12151216                                map_range < std::list<Initializer*> > ( args, [](Expression * var ){
    12161217                                        return new SingleInit( new UntypedExpr(
    1217                                                         new NameExpr( "__get_ptr" ),
     1218                                                        new NameExpr( "__get_mutexstmt_lock_ptr" ),
    12181219                                                        { var }
    12191220                                        ) );
     
    12261227                TypeExpr * lock_type_expr = new TypeExpr(
    12271228                        new TypeofType( noQualifiers, new UntypedExpr(
    1228                                 new NameExpr( "__get_type" ),
     1229                                new NameExpr( "__get_mutexstmt_lock_type" ),
    12291230                                { args.front()->clone() }
    12301231                                )
Note: See TracChangeset for help on using the changeset viewer.