Changes in src/AST/Convert.cpp [bb9924c:6cebfef]
- File:
-
- 1 edited
-
src/AST/Convert.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
rbb9924c r6cebfef 1041 1041 1042 1042 const ast::Expr * visit( const ast::StmtExpr * node ) override final { 1043 auto stmts = node->stmts; 1044 // disable sharing between multiple StmtExprs explicitly. 1045 // this should no longer be true. 1046 1043 1047 auto rslt = new StmtExpr( 1044 get<CompoundStmt>().accept1( node->stmts)1048 get<CompoundStmt>().accept1(stmts) 1045 1049 ); 1046 1050 1047 1051 rslt->returnDecls = get<ObjectDecl>().acceptL(node->returnDecls); 1048 1052 rslt->dtors = get<Expression>().acceptL(node->dtors); 1049 1050 // is this even used after convert? 1051 //if (tmp->resultExpr) { 1052 // // this MUST be found by children visit 1053 // rslt->resultExpr = strict_dynamic_cast<ExprStmt *>(readonlyCache.at(tmp->resultExpr)); 1054 //} 1053 if (node->resultExpr) { 1054 // this MUST be found by children visit 1055 rslt->resultExpr = strict_dynamic_cast<ExprStmt *>(readonlyCache.at(node->resultExpr)); 1056 } 1055 1057 1056 1058 auto expr = visitBaseExpr( node, rslt );
Note:
See TracChangeset
for help on using the changeset viewer.