Changeset 228099e


Ignore:
Timestamp:
Oct 10, 2017, 2:51:26 PM (7 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
b05a4eb
Parents:
10295d8
Message:

Fix ownership bug in initialization resolution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r10295d8 r228099e  
    12681268                // O(N^2) checks of d-types with e-types
    12691269                for ( InitAlternative & initAlt : initExpr->get_initAlts() ) {
    1270                         Type * toType = resolveTypeof( initAlt.type, indexer );
     1270                        Type * toType = resolveTypeof( initAlt.type->clone(), indexer );
    12711271                        SymTab::validateType( toType, &indexer );
    12721272                        adjustExprType( toType, env, indexer );
Note: See TracChangeset for help on using the changeset viewer.