Changeset 486caad for src/CodeGen
- Timestamp:
- Mar 25, 2024, 7:15:30 PM (22 months ago)
- Branches:
- master
- Children:
- d734fa1
- Parents:
- df78cce (diff), bf050c5 (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/CodeGen/CodeGenerator.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
rdf78cce r486caad 192 192 } 193 193 194 assert( decl->returns.size() < 2 );195 194 if ( 1 == decl->returns.size() ) { 196 195 ast::ptr<ast::Type> const & type = decl->returns[0]->get_type(); 197 196 output << genTypeNoAttr( type, acc.str(), subOptions ); 198 } else {197 } else if ( 0 == decl->returns.size() ) { 199 198 output << "void " + acc.str(); 199 } else { 200 assertf( !options.genC, "Multi-return should not reach code generation." ); 201 ast::ptr<ast::Type> type = new ast::TupleType( copy( decl->type->returns ) ); 202 output << genTypeNoAttr( type, acc.str(), subOptions ); 200 203 } 201 204
Note:
See TracChangeset
for help on using the changeset viewer.