Changeset 7543dec for src/SynTree/FunctionDecl.cc
- Timestamp:
- Nov 9, 2017, 1:01:14 PM (7 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 96fc67b
- Parents:
- 049ead9
- git-author:
- Rob Schluntz <rschlunt@…> (11/08/17 16:40:12)
- git-committer:
- Rob Schluntz <rschlunt@…> (11/09/17 13:01:14)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/FunctionDecl.cc
r049ead9 r7543dec 43 43 VarExprReplacer::DeclMap declMap; 44 44 for ( auto p : group_iterate( other.type->parameters, type->parameters ) ) { 45 declMap[ std::get<0>(p) ] = std::get<1>(p);45 declMap[ std::get<0>(p) ] = new VariableExpr( std::get<1>(p) ); 46 46 } 47 47 for ( auto p : group_iterate( other.type->returnVals, type->returnVals ) ) { 48 declMap[ std::get<0>(p) ] = std::get<1>(p);48 declMap[ std::get<0>(p) ] = new VariableExpr( std::get<1>(p) ); 49 49 } 50 50 if ( ! declMap.empty() ) { 51 51 VarExprReplacer replacer( declMap ); 52 accept ( replacer );52 acceptMutator( replacer ); 53 53 } 54 54 }
Note: See TracChangeset
for help on using the changeset viewer.