[clang] Sanitizer: Support -fwrapv with -fsanitize=signed-integer-overflow (PR #82432)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 20 14:34:09 PST 2024


================
@@ -399,6 +399,9 @@ Moved checkers
 Sanitizers
 ----------
 
+- ``-fsanitize=signed-integer-overflow`` now instruments signed arithmetic even
+  when ``-fwrapv`` is enabled. Previously, only division checks were enabled.
----------------
vitalybuka wrote:

Maybe suggest to add `-fno-sanitize=signed-integer-overflow` with `-fwrapv` if we users does not care about errors.

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


More information about the cfe-commits mailing list