Changeset 6668a3e for src/Concurrency


Ignore:
Timestamp:
Feb 11, 2022, 12:17:39 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
08e4e6a
Parents:
1f7dc61
Message:

Waitfor now resolves calls to get_monitor inside the resolver rather than after.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Waitfor.cc

    r1f7dc61 r6668a3e  
    373373                        new ListInit(
    374374                                map_range < std::list<Initializer*> > ( clause.target.arguments, [this](Expression * expr ){
    375                                         Expression * init = new CastExpr(
    376                                                 new UntypedExpr(
    377                                                         new NameExpr( "get_monitor" ),
    378                                                         { expr }
    379                                                 ),
    380                                                 new PointerType(
    381                                                         noQualifiers,
    382                                                         new StructInstType(
    383                                                                 noQualifiers,
    384                                                                 decl_monitor
    385                                                         )
    386                                                 ),
    387                                                 false
    388                                         );
    389 
    390                                         ResolvExpr::findSingleExpression( init, indexer );
    391                                         return new SingleInit( init );
     375                                        return new SingleInit( expr );
    392376                                })
    393377                        )
Note: See TracChangeset for help on using the changeset viewer.