Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/Actors.cpp

    r0794365 r7e4bd9b6  
    285285            ));
    286286
    287             // Generates: new_req{ &receiver, &msg, fn };
     287            // Generates: new_req{ &receiver, (actor *)&receiver, &msg, (message *)&msg, fn };
    288288            sendBody->push_back( new ExprStmt(
    289289                decl->location,
     
    294294                                                new NameExpr( decl->location, "new_req" ),
    295295                        new AddressExpr( new NameExpr( decl->location, "receiver" ) ),
     296                        new CastExpr( decl->location, new AddressExpr( new NameExpr( decl->location, "receiver" ) ), new PointerType( new StructInstType( *actorDecl ) ), ExplicitCast ),
    296297                        new AddressExpr( new NameExpr( decl->location, "msg" ) ),
     298                        new CastExpr( decl->location, new AddressExpr( new NameExpr( decl->location, "msg" ) ), new PointerType( new StructInstType( *msgDecl ) ), ExplicitCast ),
    297299                        new NameExpr( decl->location, "fn" )
    298300                                        }
Note: See TracChangeset for help on using the changeset viewer.