Changeset 9506c70 for src/ControlStruct
- Timestamp:
- Feb 24, 2025, 4:58:06 PM (7 months ago)
- Branches:
- master
- Children:
- b8b64c34
- Parents:
- 4be0117
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/MultiLevelExit.cpp
r4be0117 r9506c70 499 499 } 500 500 501 // The end of the last case is always immediately before the first 502 // statement after the switch, so we can jump here as a break. 501 503 auto mutCase = mutStmt->cases.back().get_and_mutate(); 502 503 Label label( mutCase->location, "breakLabel" ); 504 auto branch = new BranchStmt( mutCase->location, BranchStmt::Break, label ); 505 branch->labels.push_back( entry.useBreakExit() ); 504 auto branch = labelledNullStmt( mutCase->location, entry.useBreakExit() ); 506 505 mutCase->stmts.push_back( branch ); 507 506
Note:
See TracChangeset
for help on using the changeset viewer.