Changeset 839ccbb for src/GenPoly


Ignore:
Timestamp:
Nov 20, 2015, 4:19:13 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
5189888
Parents:
05587c2 (diff), ed94eac (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.
git-author:
Peter A. Buhr <pabuhr@…> (11/20/15 12:51:58)
git-committer:
Peter A. Buhr <pabuhr@…> (11/20/15 16:19:13)
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/InstantiateGeneric.cc

    r05587c2 r839ccbb  
    219219                StructDecl *concDecl = instantiations.lookup( inst );
    220220                if ( ! concDecl ) {
     221                        assert( inst->get_baseParameters() && "Base struct has parameters" );
    221222                        // set concDecl to new type, insert type declaration into statements to add
    222223                        concDecl = new StructDecl( typeNamer.newName( inst->get_name() ) );
    223224                        substituteMembers( inst->get_baseStruct()->get_members(),
    224                                                                 inst->get_baseParameters(), inst->get_parameters(),
     225                                                                *inst->get_baseParameters(), inst->get_parameters(),
    225226                                                                concDecl->get_members() );
    226227                        addDeclaration( concDecl );
     
    246247                if ( ! concDecl ) {
    247248                        // set concDecl to new type, insert type declaration into statements to add
     249                        assert( inst->get_baseParameters() && "Base union has parameters" );
    248250                        concDecl = new UnionDecl( typeNamer.newName( inst->get_name() ) );
    249251                        substituteMembers( inst->get_baseUnion()->get_members(),
    250                                                                 inst->get_baseParameters(), inst->get_parameters(),
     252                                                                *inst->get_baseParameters(), inst->get_parameters(),
    251253                                                                concDecl->get_members() );
    252254                        addDeclaration( concDecl );
Note: See TracChangeset for help on using the changeset viewer.