Changeset 97f9619 for src/CodeGen/CodeGenerator.cpp
- Timestamp:
- Jul 16, 2024, 10:35:29 PM (6 months ago)
- Branches:
- master
- Children:
- 0097d08
- Parents:
- 68ea8d2 (diff), 88bc876 (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
Legend:
- Unmodified
- Added
- Removed
-
src/CodeGen/CodeGenerator.cpp
r68ea8d2 r97f9619 1195 1195 stmt->body->accept( *visitor ); 1196 1196 1197 output << indent;1198 1199 1197 if ( stmt->isDoWhile ) { 1200 1198 output << " while ("; 1201 1199 stmt->cond->accept( *visitor ); 1202 output << ");"; 1200 output << ( ( nullptr == stmt->else_ ) ? ");" : ")" ); 1201 } 1202 if ( stmt->else_ ) { 1203 output << " else "; 1204 stmt->else_->accept( *visitor ); 1203 1205 } 1204 1206 } … … 1225 1227 stmt->body->accept( *visitor ); 1226 1228 } 1229 1230 if ( nullptr != stmt->else_ ) { 1231 assertf( !options.genC, "Loop else should not reach code generation." ); 1232 output << " else "; 1233 stmt->else_->accept( *visitor ); 1234 } 1227 1235 } 1228 1236
Note: See TracChangeset
for help on using the changeset viewer.