Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r080d2d7 r3cc1111  
    422422                        ;
    423423                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 );
    427426                        // Should be safe because of isMainFor.
    428427                        StructInstType * struct_type = static_cast<StructInstType *>(
     
    12041203                                        //new TypeofType( noQualifiers, args.front()->clone() )
    12051204                                        new TypeofType( noQualifiers, new UntypedExpr(
    1206                                                         new NameExpr( "__get_mutexstmt_lock_type" ),
     1205                                                        new NameExpr( "__get_type" ),
    12071206                                                        { args.front()->clone() }
    12081207                                                )
     
    12161215                                map_range < std::list<Initializer*> > ( args, [](Expression * var ){
    12171216                                        return new SingleInit( new UntypedExpr(
    1218                                                         new NameExpr( "__get_mutexstmt_lock_ptr" ),
     1217                                                        new NameExpr( "__get_ptr" ),
    12191218                                                        { var }
    12201219                                        ) );
     
    12271226                TypeExpr * lock_type_expr = new TypeExpr(
    12281227                        new TypeofType( noQualifiers, new UntypedExpr(
    1229                                 new NameExpr( "__get_mutexstmt_lock_type" ),
     1228                                new NameExpr( "__get_type" ),
    12301229                                { args.front()->clone() }
    12311230                                )
Note: See TracChangeset for help on using the changeset viewer.