Landing: 51b0fc2d0442
Project / Subsystem
gcc / ada
Date
2024-06-24
Author
Piotr Trojanek
Commit
51b0fc2d0442c18b76782681a0c6d50007fe3e18
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- ada
- patch_id
- —
- commit_hash
- 51b0fc2d0442c18b76782681a0c6d50007fe3e18
- source_type
- github
- headline
- Simplify code in `Rep_Item_Too_Late` with a membership test
- tldr
- The Ada compiler function `Rep_Item_Too_Late` was simplified using a membership test, improving readability without changing its functionality.
- author
- Piotr Trojanek
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • ada
- • compiler
- • refactoring
- • code quality
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2024-06-24T00:00:00.000Z
This commit introduces a minor code cleanup in the Ada compiler’s sem_ch13.adb file. The Rep_Item_Too_Late function, which likely handles checks related to representation items in Ada, has been refactored to use a membership test. This change makes the code more concise and readable without altering its original semantics or behavior, focusing purely on internal maintainability.