- Timestamp:
- Dec 13, 2016, 5:02:24 PM (8 years ago)
- 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
- Location:
- src/ResolvExpr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rea83e00a r722617d 44 44 #include "InitTweak/GenInit.h" 45 45 #include "ResolveTypeof.h" 46 #include "Resolver.h" 46 47 47 48 extern bool resolvep; … … 1122 1123 } 1123 1124 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 1124 1132 } // namespace ResolvExpr 1125 1133 -
src/ResolvExpr/AlternativeFinder.h
rea83e00a r722617d 70 70 virtual void visit( TupleAssignExpr *tupleExpr ); 71 71 virtual void visit( UniqueExpr *unqExpr ); 72 virtual void visit( StmtExpr *stmtExpr ); 72 73 /// Runs a new alternative finder on each element in [begin, end) 73 74 /// and writes each alternative finder to out.
Note: See TracChangeset
for help on using the changeset viewer.