Changeset bff227f for src/Tuples/TupleAssignment.cc
- Timestamp:
- Jul 21, 2017, 3:57:11 PM (6 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:
- 9191a8e
- Parents:
- 53a8e68
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Tuples/TupleAssignment.cc
r53a8e68 rbff227f 22 22 #include "Explode.h" 23 23 #include "Common/SemanticError.h" 24 #include "CodeGen/OperatorTable.h" 24 25 #include "InitTweak/InitTweak.h" 25 26 #include "InitTweak/GenInit.h" … … 110 111 void TupleAssignSpotter::spot( UntypedExpr * expr, const std::list<ResolvExpr::AltList> &possibilities ) { 111 112 if ( NameExpr *op = dynamic_cast< NameExpr * >(expr->get_function()) ) { 112 if ( InitTweak::isCtorDtorAssign( op->get_name() ) ) {113 if ( CodeGen::isCtorDtorAssign( op->get_name() ) ) { 113 114 fname = op->get_name(); 114 115 for ( std::list<ResolvExpr::AltList>::const_iterator ali = possibilities.begin(); ali != possibilities.end(); ++ali ) { 115 116 if ( ali->size() == 0 ) continue; // AlternativeFinder will natrually handle this case, if it's legal 116 if ( ali->size() <= 1 && InitTweak::isAssignment( op->get_name() ) ) {117 if ( ali->size() <= 1 && CodeGen::isAssignment( op->get_name() ) ) { 117 118 // what does it mean if an assignment takes 1 argument? maybe someone defined such a function, in which case AlternativeFinder will naturally handle it 118 119 continue;
Note: See TracChangeset
for help on using the changeset viewer.