Changeset e4d3ceb for src/ResolvExpr
- Timestamp:
- Jul 12, 2016, 6:34:33 PM (8 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/Resolver.cc
r4e06c1e re4d3ceb 545 545 // get Variable <array>, then get the base type of the VariableExpr - this is the type that needs to be fixed 546 546 Expression * arr = InitTweak::getCallArg( plusExpr, 0 ); 547 assert( dynamic_cast< VariableExpr * >( arr ) );547 assert( dynamic_cast< VariableExpr * >( arr ) || dynamic_cast< MemberExpr *>( arr ) ); 548 548 assert( arr && arr->get_results().size() == 1 ); 549 549 type = arr->get_results().front()->clone(); … … 554 554 assert( constructee->get_results().size() == 1 ); 555 555 AddressExpr * addrExpr = dynamic_cast< AddressExpr * > ( constructee ); 556 assert( addrExpr && addrExpr->get_results().size() == 1 );556 assert( addrExpr && addrExpr->get_results().size() == 1 ); 557 557 type = addrExpr->get_results().front()->clone(); 558 558 }
Note: See TracChangeset
for help on using the changeset viewer.