Changeset 6840e7c for src/MakeLibCfa.cc
- Timestamp:
- Oct 19, 2017, 12:01:04 PM (8 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 837ce06
- Parents:
- b96ec83 (diff), a15b72c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/MakeLibCfa.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/MakeLibCfa.cc
rb96ec83 r6840e7c 119 119 newDecls.push_back( funcDecl ); 120 120 121 Statement * stmt = nullptr; 121 122 switch ( opInfo.type ) { 122 123 case CodeGen::OT_INDEX: … … 128 129 case CodeGen::OT_POSTFIXASSIGN: 129 130 case CodeGen::OT_INFIXASSIGN: 131 // return the recursive call 132 stmt = new ReturnStmt( noLabels, newExpr ); 133 break; 130 134 case CodeGen::OT_CTOR: 131 135 case CodeGen::OT_DTOR: 132 // returnthe recursive call133 funcDecl->get_statements()->get_kids().push_back( new ReturnStmt( std::list< Label >(), newExpr ));136 // execute the recursive call 137 stmt = new ExprStmt( noLabels, newExpr ); 134 138 break; 135 139 case CodeGen::OT_CONSTANT: … … 138 142 assert( false ); 139 143 } // switch 144 funcDecl->get_statements()->push_back( stmt ); 140 145 } 141 146 } // namespace
Note:
See TracChangeset
for help on using the changeset viewer.