diff options
author | Henrik G. Olsson <hnrklssn@gmail.com> | 2023-11-13 14:45:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 14:45:27 +0100 |
commit | e6eda66cbc5ebf424b184506fc6bb27bee3d293f (patch) | |
tree | 279686a6bb14a0023b9d8680d29ad2e5a2206c25 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 81330286f18fda3da2a69fb2dd12de0ac90115b7 (diff) | |
download | llvm-e6eda66cbc5ebf424b184506fc6bb27bee3d293f.zip llvm-e6eda66cbc5ebf424b184506fc6bb27bee3d293f.tar.gz llvm-e6eda66cbc5ebf424b184506fc6bb27bee3d293f.tar.bz2 |
Recommit changes to global checks (#71171)
Recommits the changes from https://reviews.llvm.org/D148216.
Explicitly named globals are now matched literally, instead of emitting
a capture group for the name. This resolves #70047.
Metadata and annotations, on the other hand, are captured and matched
against by default, since their identifiers are not stable.
The reasons for revert (#63746) have been fixed:
The first issue, that of duplicated checkers, has already been resolved
in #70050.
This PR resolves the second issue listed in #63746, regarding the order
of named and unnamed globals. This is fixed by recording the index of
substrings containing global values, and sorting the checks according to
that index before emitting them. This results in global value checks
being emitted in the order they were seen instead of being grouped
separately.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions