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

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 26 17:08:07 PDT 2025


================
@@ -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:

There is no standard fixed point type, so it should not be a part of "undefined"?

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


More information about the llvm-commits mailing list