Changeset 5f210c0 for src/ControlStruct
- Timestamp:
- Aug 4, 2024, 9:49:25 PM (5 months ago)
- Branches:
- master
- Children:
- 7db4fcd4
- Parents:
- 7ab24fef
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ControlStruct/TranslateEnumRange.cpp
r7ab24fef r5f210c0 51 51 // it wraps around and become unsigned max 52 52 ast::UntypedExpr * condition = ast::UntypedExpr::createCall( location, 53 "?<=?",53 stmt->is_inc? "?<=?": "?>=?", 54 54 { new ast::NameExpr( location, indexName ), 55 ast::UntypedExpr::createCall( location, "upperBound", {} ) }); 55 stmt->is_inc? 56 ast::UntypedExpr::createCall( location, "upperBound", {} ): 57 ast::UntypedExpr::createCall( location, "lowerBound", {} ) 58 }); 56 59 auto increment = ast::UntypedExpr::createCall( location, 57 60 stmt->is_inc? "succ_unsafe": "pred_unsafe",
Note: See TracChangeset
for help on using the changeset viewer.