Changeset 6a490b2 for src/ResolvExpr/AlternativeFinder.cc
- Timestamp:
- May 11, 2020, 1:53:29 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 504a7dc
- Parents:
- b7d6a36 (diff), a7b486b (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rb7d6a36 r6a490b2 1292 1292 1293 1293 try { 1294 // Attempt 1 : turn (thread&)X into ( thread_desc&)X.__thrd1294 // Attempt 1 : turn (thread&)X into ($thread&)X.__thrd 1295 1295 // Clone is purely for memory management 1296 1296 std::unique_ptr<Expression> tech1 { new UntypedMemberExpr(new NameExpr(castExpr->concrete_target.field), castExpr->arg->clone()) }; … … 1303 1303 } catch(SemanticErrorException & ) {} 1304 1304 1305 // Fallback : turn (thread&)X into ( thread_desc&)get_thread(X)1305 // Fallback : turn (thread&)X into ($thread&)get_thread(X) 1306 1306 std::unique_ptr<Expression> fallback { UntypedExpr::createDeref( new UntypedExpr(new NameExpr(castExpr->concrete_target.getter), { castExpr->arg->clone() })) }; 1307 1307 // 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.