Changeset 722617d


Ignore:
Timestamp:
Dec 13, 2016, 5:02:24 PM (5 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, 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, resolv-new, with_gc
Children:
1d2b64f
Parents:
ea83e00a
Message:

resolve StmtExprs?

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    rea83e00a r722617d  
    4444#include "InitTweak/GenInit.h"
    4545#include "ResolveTypeof.h"
     46#include "Resolver.h"
    4647
    4748extern bool resolvep;
     
    11221123        }
    11231124
     1125        void AlternativeFinder::visit( StmtExpr *stmtExpr ) {
     1126                StmtExpr * newStmtExpr = stmtExpr->clone();
     1127                ResolvExpr::resolveStmtExpr( newStmtExpr, indexer );
     1128                // xxx - this env is almost certainly wrong, and needs to somehow contain the combined environments from all of the statements in the stmtExpr...
     1129                alternatives.push_back( Alternative( newStmtExpr, env, Cost::zero ) );
     1130        }
     1131
    11241132} // namespace ResolvExpr
    11251133
  • src/ResolvExpr/AlternativeFinder.h

    rea83e00a r722617d  
    7070                virtual void visit( TupleAssignExpr *tupleExpr );
    7171                virtual void visit( UniqueExpr *unqExpr );
     72                virtual void visit( StmtExpr *stmtExpr );
    7273                /// Runs a new alternative finder on each element in [begin, end)
    7374                /// and writes each alternative finder to out.
Note: See TracChangeset for help on using the changeset viewer.