[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)
Victor Chernyakin via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 26 17:13:22 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 |
----------------
localspook wrote:
This is part of the [N1169](https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf) extensions. See #43241 for example. (I'll write a more detailed PR message, but I wanted to make sure the tests pass first.)
https://github.com/llvm/llvm-project/pull/165181
More information about the llvm-commits
mailing list