Files
llvm-project/clang/lib/CodeGen/CGExprScalar.cpp
Eli Friedman 898eabc27d [clang] Fix interaction of __ob_wrap with signed divide. (#194474)
At first glance, signed divide overflow seems similar to other forms of
signed overflow, but it's significantly different: it's the only form of
signed overflow that is not affected by -fwrapv, it has undefined
behavior at the LLVM IR level, and it can trigger trap on x86.

Given that, make ubsan trigger on signed divide overflow even if a type
is marked __ob_wrap.
2026-04-28 13:40:04 -07:00

260 KiB