aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorShafik Yaghmour <shafik.yaghmour@intel.com>2023-01-12 08:02:00 -0800
committerShafik Yaghmour <shafik.yaghmour@intel.com>2023-01-12 08:04:04 -0800
commita0138390dd2ac2130c9f76e6778d6e45e4dc5526 (patch)
treef495b665bd382aaca83a3ed100524862d9537c54 /clang/lib/Frontend/InitPreprocessor.cpp
parented001018a02b3d8da699317cad7f7727d126f01d (diff)
downloadllvm-a0138390dd2ac2130c9f76e6778d6e45e4dc5526.zip
llvm-a0138390dd2ac2130c9f76e6778d6e45e4dc5526.tar.gz
llvm-a0138390dd2ac2130c9f76e6778d6e45e4dc5526.tar.bz2
[Clang] Diagnose undefined behavior in a constant expression while evaluating a compound assignment with remainder as operand
Currently we don't diagnose overflow in a constant expression for the case of compound assignment with remainder as a operand. In handleIntIntBinOp the arguments LHS and Result can be the same source but in the check for remainder in this function we assigned to Result before checking for overflow. In all the other operations the check is done before Result is assigned to. Differential Revision: https://reviews.llvm.org/D140455
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions