Changeset 497282e


Ignore:
Timestamp:
Dec 4, 2017, 11:08:00 AM (4 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
5fcba14
Parents:
e4bc986
Message:

Strip references when adding with statement to Indexer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SymTab/Indexer.cc

    re4bc986 r497282e  
    575575                for ( Expression * expr : stmt->exprs ) {
    576576                        if ( expr->result ) {
    577                                 AggregateDecl * aggr = expr->result->getAggr();
     577                                AggregateDecl * aggr = expr->result->stripReferences()->getAggr();
    578578                                assertf( aggr, "WithStmt expr has non-aggregate type: %s", toString( expr->result ).c_str() );
    579579
Note: See TracChangeset for help on using the changeset viewer.