[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

Vitaly Buka via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 26 18:16:24 PDT 2026


================
@@ -149,7 +151,7 @@ SANITIZER("shadow-call-stack", ShadowCallStack)
 // ABI or address space layout implications, and only catch undefined behavior.
 SANITIZER_GROUP("undefined", Undefined,
                 Alignment | Bool | Builtin | ArrayBounds | Enum |
-                    FloatCastOverflow |
+                    FixedPoint | FloatCastOverflow |
----------------
vitalybuka wrote:

do you know if anything like this for GCC?

btw you can extract it from the PR into a separate one.

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


More information about the cfe-commits mailing list