Changes in src/SynTree/CompoundStmt.cc [ba3706f:7543dec]
- File:
-
- 1 edited
-
src/SynTree/CompoundStmt.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/CompoundStmt.cc
rba3706f r7543dec 28 28 using std::endl; 29 29 30 CompoundStmt::CompoundStmt( ) : Statement() {30 CompoundStmt::CompoundStmt( std::list<Label> labels ) : Statement( labels ) { 31 31 } 32 32 33 CompoundStmt::CompoundStmt( std::list<Statement *> stmts ) : Statement( ), kids( stmts ) {33 CompoundStmt::CompoundStmt( std::list<Statement *> stmts ) : Statement( noLabels ), kids( stmts ) { 34 34 } 35 35 … … 59 59 DeclarationWithType * origdwt = strict_dynamic_cast< DeclarationWithType * > ( origDeclStmt->get_decl() ); 60 60 assert( dwt->get_name() == origdwt->get_name() ); 61 declMap[ origdwt ] = dwt;61 declMap[ origdwt ] = new VariableExpr( dwt ); 62 62 } else assert( ! dynamic_cast< DeclarationWithType * > ( origDeclStmt->get_decl() ) ); 63 63 } else assert( ! dynamic_cast< DeclStmt * > ( s ) ); … … 65 65 if ( ! declMap.empty() ) { 66 66 VarExprReplacer replacer( declMap ); 67 accept ( replacer );67 acceptMutator( replacer ); 68 68 } 69 69 }
Note:
See TracChangeset
for help on using the changeset viewer.