ITADN

[BoundsSafety] Backport TypeLoc improvements

#12435Openhnrklssn 创建于 2026-02-24
clang:bounds-safety
H
hnrklssncommented
https://github.com/llvm/llvm-project/pull/167287 adds proper TypeLoc support for bounds safety types in upstream LLVM. It hasn't been merged yet, because it would cause downstream merge conflicts. We want to resolve those conflicts ahead of time, to avoid disruption when the upstream PR is merged. We currently have some downstream hacks to work around the fact that bounds safety types are missing TypeLocs - these should be updated to extract source locations from the TypeLoc instead. These locations should be apparent from the merge conflicts. Concretely, what needs to be done is to cherry-pick the commits from the upstream PR onto swiftlang/llvm-project/next, resolve the merge conflicts, make sure all the tests pass, and open a PR against this repo. If any changes are made to the code from https://github.com/llvm/llvm-project/pull/167287 while cherry-picking, that PR then needs to be updated to match.
0 条评论