Changeset 9236060 for src/ResolvExpr/AlternativeFinder.cc
- Timestamp:
- Aug 14, 2017, 2:03:39 PM (5 years ago)
- Branches:
- aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 74b007ba
- Parents:
- fd344aa (diff), 54cd58b (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
rfd344aa r9236060 9 9 // Author : Richard C. Bilson 10 10 // Created On : Sat May 16 23:52:08 2015 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Fri Mar 17 09:14:17201713 // Update Count : 3 011 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Jul 26 11:33:00 2017 13 // Update Count : 31 14 14 // 15 15 … … 901 901 } 902 902 903 void AlternativeFinder::visit( VirtualCastExpr * castExpr ) { 904 assertf( castExpr->get_result(), "Implicate virtual cast targets not yet supported." ); 905 AlternativeFinder finder( indexer, env ); 906 // don't prune here, since it's guaranteed all alternatives will have the same type 907 // (giving the alternatives different types is half of the point of ConstructorExpr nodes) 908 finder.findWithAdjustment( castExpr->get_arg(), false ); 909 for ( Alternative & alt : finder.alternatives ) { 910 alternatives.push_back( Alternative( 911 new VirtualCastExpr( alt.expr->clone(), castExpr->get_result()->clone() ), 912 alt.env, alt.cost ) ); 913 } 914 } 915 903 916 void AlternativeFinder::visit( UntypedMemberExpr *memberExpr ) { 904 917 AlternativeFinder funcFinder( indexer, env );
Note: See TracChangeset
for help on using the changeset viewer.