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

resolve StmtExprs?

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.