Changeset 8b34df0
- Timestamp:
- Jun 17, 2019, 1:08:35 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- aba20d2
- Parents:
- 120a28c3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
r120a28c3 r8b34df0 576 576 if ( srcInferred.mode == ast::Expr::InferUnion::Params ) { 577 577 const ast::InferredParams &srcParams = srcInferred.inferParams(); 578 for (auto srcParam : srcParams) {579 tgtInferParams[srcParam.first] =ParamEntry(578 for (auto & srcParam : srcParams) { 579 auto res = tgtInferParams.emplace(srcParam.first, ParamEntry( 580 580 srcParam.second.decl, 581 581 get<Declaration>().accept1(srcParam.second.declptr), … … 583 583 get<Type>().accept1(srcParam.second.formalType), 584 584 get<Expression>().accept1(srcParam.second.expr) 585 ); 585 )); 586 assert(res.second); 586 587 } 587 588 } else if ( srcInferred.mode == ast::Expr::InferUnion::Slots ) { … … 2002 2003 if ( !oldInferParams.empty() ) { 2003 2004 ast::InferredParams &tgt = newInferred.inferParams(); 2004 for (auto old : oldInferParams) {2005 for (auto & old : oldInferParams) { 2005 2006 tgt[old.first] = ast::ParamEntry( 2006 2007 old.second.decl,
Note: See TracChangeset
for help on using the changeset viewer.