mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add `Value.constantAccessPath`. It is like `accessPath`, but ensures that the projectionPath only contains "constant" elements. This means: if the access contains an `index_addr` projection with a non-constant index, the `projectionPath` does _not_ contain the `index_addr`. Instead, the `base` is an `AccessBase.index` which refers to the `index_addr`.