Changeset 679864e1 for src/ResolvExpr


Ignore:
Timestamp:
Oct 7, 2015, 12:31:28 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, 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:
242d458
Parents:
b0be06ac
Message:

link typedecl to its implementation type, typedecl initialization hack in resolver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    rb0be06ac r679864e1  
    99// Author           : Richard C. Bilson
    1010// Created On       : Sun May 17 12:17:01 2015
    11 // Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Jul 24 17:33:54 2015
    13 // Update Count     : 178
     11// Last Modified By : Rob Schluntz
     12// Last Modified On : Tue Sep 15 16:24:07 2015
     13// Update Count     : 181
    1414//
    1515
     
    407407                } else if ( StructInstType * st = dynamic_cast< StructInstType * >( initContext ) ) {
    408408                        resolveAggrInit( st->get_baseStruct(), iter, end );
    409                 } else if ( UnionInstType *st = dynamic_cast< UnionInstType * >( initContext ) ) {
     409                } else if ( UnionInstType * st = dynamic_cast< UnionInstType * >( initContext ) ) {
    410410                        resolveAggrInit( st->get_baseUnion(), iter, end );
     411                } else if ( TypeInstType * tt = dynamic_cast< TypeInstType * >( initContext ) ) {
     412                        // try again...
     413                        initContext = tt->get_baseType()->get_base();
     414                        visit(listInit);
    411415                } else {
     416                        assert( dynamic_cast< BasicType * >( initContext ) );
    412417                        // basic types are handled here
    413418                        Visitor::visit( listInit );
Note: See TracChangeset for help on using the changeset viewer.