Ignore:
Timestamp:
Feb 24, 2020, 2:21:03 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation
Children:
959f6ad
Parents:
0f2c555
Message:

Changed descriptors for concurrency to use $ prefix instead of trailing _desc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r0f2c555 rac2b598  
    12921292
    12931293                try {
    1294                         // Attempt 1 : turn (thread&)X into (thread_desc&)X.__thrd
     1294                        // Attempt 1 : turn (thread&)X into ($thread&)X.__thrd
    12951295                        // Clone is purely for memory management
    12961296                        std::unique_ptr<Expression> tech1 { new UntypedMemberExpr(new NameExpr(castExpr->concrete_target.field), castExpr->arg->clone()) };
     
    13031303                } catch(SemanticErrorException & ) {}
    13041304
    1305                 // Fallback : turn (thread&)X into (thread_desc&)get_thread(X)
     1305                // Fallback : turn (thread&)X into ($thread&)get_thread(X)
    13061306                std::unique_ptr<Expression> fallback { UntypedExpr::createDeref( new UntypedExpr(new NameExpr(castExpr->concrete_target.getter), { castExpr->arg->clone() })) };
    13071307                // don't prune here, since it's guaranteed all alternatives will have the same type
Note: See TracChangeset for help on using the changeset viewer.