aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorziqingluo-90 <ziqing@udel.edu>2023-07-14 14:43:48 -0700
committerziqingluo-90 <ziqing@udel.edu>2023-07-14 14:47:07 -0700
commit5b012bf5ab5fcb840fe7f6c8664b8981ce6f24f3 (patch)
tree9d06814a8a17d71a12e1489020852af7c41c9488 /llvm/lib/CodeGen/MachineSink.cpp
parent2dbc53267274177f754fcb7470a9ebd4ee9bcbda (diff)
downloadllvm-5b012bf5ab5fcb840fe7f6c8664b8981ce6f24f3.zip
llvm-5b012bf5ab5fcb840fe7f6c8664b8981ce6f24f3.tar.gz
llvm-5b012bf5ab5fcb840fe7f6c8664b8981ce6f24f3.tar.bz2
[-Wunsafe-buffer-usage] Improving insertion of the [[clang::unsafe_buffer_usage]] attribute
For a fix-it that inserts the `[[clang::unsafe_buffer_usage]]` attribute, it will lookup existing macros defined for the attribute and use the (last defined such) macro directly. Fix-its will use raw `[[clang::unsafe_buffer_usage]]` if no such macro is defined. The implementation mimics how a similar machine for the `[[fallthrough]]` attribute was implemented. Reviewed by: NoQ (Artem Dergachev) Differential revision: https://reviews.llvm.org/D150338
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions