Changeset 66f8528 for src/ResolvExpr/Resolver.cc
- Timestamp:
- Dec 15, 2016, 5:16:42 PM (7 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:
- 43385ca, f7ff3fb
- Parents:
- 5802a4f (diff), 596f987b (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/Resolver.cc
r5802a4f r66f8528 404 404 template< typename AggrInst > 405 405 TypeSubstitution makeGenericSubstitutuion( AggrInst * inst ) { 406 assert( inst ); 407 assert( inst->get_baseParameters() ); 406 408 std::list< TypeDecl * > baseParams = *inst->get_baseParameters(); 407 409 std::list< Expression * > typeSubs = inst->get_parameters(); … … 444 446 445 447 void Resolver::resolveAggrInit( ReferenceToType * inst, InitIterator & init, InitIterator & initEnd ) { 446 447 448 if ( StructInstType * sit = dynamic_cast< StructInstType * >( inst ) ) { 448 449 TypeSubstitution sub = makeGenericSubstitutuion( sit ); … … 455 456 } 456 457 } else if ( UnionInstType * uit = dynamic_cast< UnionInstType * >( inst ) ) { 457 TypeSubstitution sub = makeGenericSubstitutuion( sit );458 TypeSubstitution sub = makeGenericSubstitutuion( uit ); 458 459 UnionDecl * un = uit->get_baseUnion(); 459 460 // only resolve to the first member of a union
Note: See TracChangeset
for help on using the changeset viewer.