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

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 15 23:46:36 PDT 2024


MaskRay wrote:

> Shouldn't plain `-fsanitize=undefined` disable this sanitizer by default (requiring explicit opt-in)? In `-fwrapv` mode this is not undefined behavior, so `-fsanitize=undefined` should not complain about it.

I was on the fence whether `-fsanitize=undefined` should expand to signed-integer-overflow: 
https://github.com/llvm/llvm-project/pull/80089#issuecomment-1945202620

Perhaps you have run into some convenience issues? #85501 for the signed-integer-overflow suppresion.

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


More information about the cfe-commits mailing list