Changeset 97f65d5 for src/GenPoly
- Timestamp:
- Feb 15, 2017, 8:13:49 AM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, 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:
- e6512c8
- Parents:
- aa9ee19 (diff), 3149e7e (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. - Location:
- src/GenPoly
- Files:
-
- 2 edited
-
Box.cc (modified) (1 diff)
-
InstantiateGeneric.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
raa9ee19 r97f65d5 236 236 } // if 237 237 } catch( SemanticError &e ) { 238 e.set_location( (*i)->location ); 238 239 errors.append( e ); 239 240 } // try -
src/GenPoly/InstantiateGeneric.cc
raa9ee19 r97f65d5 122 122 /// Adds a value for a (key, typeList) pair to the current scope 123 123 void insert( Key *key, const std::list< TypeExpr* > ¶ms, Value *value ) { 124 instantiations[ key ].push_back( Instantiation( TypeList( params ), value ) ); 124 auto it = instantiations.findAt( instantiations.currentScope(), key ); 125 if ( it == instantiations.end() ) { 126 instantiations.insert( key, ValueList{ Instantiation{ TypeList( params ), value } } ); 127 } else { 128 it->second.push_back( Instantiation{ TypeList( params ), value } ); 129 } 125 130 } 126 131 };
Note:
See TracChangeset
for help on using the changeset viewer.