mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Previously, `visitProductLeafAccessPathNodes` required its caller to provide both an `AccessPath` `path` and an `SILValue` `address` which satisfied `path == AccessPath::compute(address)` to force the caller to handle the case of an invalid `AccessPath`. Now, instead, it computes the value itself and returns false if it's invalid. It could be tweaked to also return false if the provided lambda returned false but that would make the only currently extant callers less pleasant and also would not be sufficient in the case of caller who wanted to distinguish between an invalid `AccessPath` and a particular leaf visit returning false.
41 KiB
41 KiB