Changeset d9f1b2d


Ignore:
Timestamp:
May 25, 2016, 1:42:24 PM (8 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, with_gc
Children:
084184b, 9554d9b
Parents:
6e3ae00
Message:

handle MemberExpr? in getBaseVar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/GenPoly.cc

    r6e3ae00 rd9f1b2d  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Rob Schluntz
    12 // Last Modified On : Mon May 02 14:53:33 2016
     12// Last Modified On : Wed May 25 13:39:21 2016
    1313// Update Count     : 13
    1414//
     
    185185                        if ( VariableExpr *varExpr = dynamic_cast< VariableExpr* >( expr ) ) {
    186186                                return varExpr;
     187                        } else if ( MemberExpr *memberExpr = dynamic_cast< MemberExpr* >( expr ) ) {
     188                                expr = memberExpr->get_aggregate();
    187189                        } else if ( AddressExpr *addressExpr = dynamic_cast< AddressExpr* >( expr ) ) {
    188190                                expr = addressExpr->get_arg();
Note: See TracChangeset for help on using the changeset viewer.