[clang] [Clang] add wraps and no_wraps attributes (PR #115094)
Vitaly Buka via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 8 14:17:44 PST 2024
https://github.com/vitalybuka commented:
I guess we already discussed that before. My preference is the wrap and sanitize attributes are interdependent. Open to be convinced otherwise.
But seems like we want consistency with https://godbolt.org/z/crhdaczx1
* `__attribute__((wraps,no_sanitize("signed-integer-overflow")))` wraps quietly
* `__attribute__((wraps))` wraps, but may report if runs with `-fsanitize=signed-integer-overflow`
* `__attribute__((no_sanitize("signed-integer-overflow")))` reports, but in recovery mode, compile UB any way it likes.
https://github.com/llvm/llvm-project/pull/115094
More information about the cfe-commits
mailing list