[clang] Respect the [[clang::unsafe_buffer_usage]] attribute for field and constructor initializers (PR #91991)

Zequan Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 14 13:35:21 PST 2024


ZequanWu wrote:

Confirmed that this change causes crash with -Wunsafe-buffer-usage: https://godbolt.org/z/vcv8d6sYr. 

My previously manual-reduced repro in https://github.com/llvm/llvm-project/pull/91991#issuecomment-2477311737 happens to crash before this change.

https://github.com/llvm/llvm-project/pull/91991


More information about the cfe-commits mailing list