Ignore:
Timestamp:
Sep 27, 2021, 2:09:55 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
cc287800
Parents:
4e28d2e9 (diff), 056cbdb (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Keywords.cc

    r4e28d2e9 r949339b  
    12001200                                new PointerType(
    12011201                                        noQualifiers,
    1202                                         new TypeofType( noQualifiers, args.front()->clone() )
     1202                                        //new TypeofType( noQualifiers, args.front()->clone() )
     1203                                        new TypeofType( noQualifiers, new UntypedExpr(
     1204                                                        new NameExpr( "__get_type" ),
     1205                                                        { args.front()->clone() }
     1206                                                )
     1207                                        )
    12031208                                ),
    12041209                                new ConstantExpr( Constant::from_ulong( args.size() ) ),
     
    12091214                                map_range < std::list<Initializer*> > ( args, [](Expression * var ){
    12101215                                        return new SingleInit( new UntypedExpr(
    1211                                                 new NameExpr( "__get_pointer" ),
    1212                                                 { var }
     1216                                                        new NameExpr( "__get_ptr" ),
     1217                                                        { var }
    12131218                                        ) );
     1219                                        //return new SingleInit( new AddressExpr( var ) );
    12141220                                })
    12151221                        )
     
    12171223
    12181224                StructInstType * lock_guard_struct = new StructInstType( noQualifiers, lock_guard_decl );
    1219                 TypeExpr * lock_type_expr = new TypeExpr( new TypeofType( noQualifiers, args.front()->clone() ) );
     1225                TypeExpr * lock_type_expr = new TypeExpr(
     1226                        new TypeofType( noQualifiers, new UntypedExpr(
     1227                                new NameExpr( "__get_type" ),
     1228                                { args.front()->clone() }
     1229                                )
     1230                        )
     1231                );
    12201232
    12211233                lock_guard_struct->parameters.push_back( lock_type_expr ) ;
Note: See TracChangeset for help on using the changeset viewer.