Changeset e4d3ceb for src/ResolvExpr


Ignore:
Timestamp:
Jul 12, 2016, 6:34:33 PM (8 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, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
5479e63
Parents:
4e06c1e (diff), e67f54c (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.
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Resolver.cc

    r4e06c1e re4d3ceb  
    545545                        // get Variable <array>, then get the base type of the VariableExpr - this is the type that needs to be fixed
    546546                        Expression * arr = InitTweak::getCallArg( plusExpr, 0 );
    547                         assert( dynamic_cast< VariableExpr * >( arr ) );
     547                        assert( dynamic_cast< VariableExpr * >( arr ) || dynamic_cast< MemberExpr *>( arr ) );
    548548                        assert( arr && arr->get_results().size() == 1 );
    549549                        type = arr->get_results().front()->clone();
     
    554554                        assert( constructee->get_results().size() == 1 );
    555555                        AddressExpr * addrExpr = dynamic_cast< AddressExpr * > ( constructee );
    556                         assert( addrExpr && addrExpr->get_results().size() == 1);
     556                        assert( addrExpr && addrExpr->get_results().size() == 1 );
    557557                        type = addrExpr->get_results().front()->clone();
    558558                }
Note: See TracChangeset for help on using the changeset viewer.