diff options
author | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-11-15 11:06:59 -0800 |
---|---|---|
committer | Shafik Yaghmour <shafik.yaghmour@intel.com> | 2022-11-15 12:07:03 -0800 |
commit | 9332ddfba69c38f9ceef4175b042fba0bb8e67bb (patch) | |
tree | dd6c1aec97e373656bd9ea3545ebb908b5c540e3 /mlir/lib/Transforms/LoopInvariantCodeMotion.cpp | |
parent | eba3fece88f51ca4e7e0a9508f3b012e6bb7e2d0 (diff) | |
download | llvm-9332ddfba69c38f9ceef4175b042fba0bb8e67bb.zip llvm-9332ddfba69c38f9ceef4175b042fba0bb8e67bb.tar.gz llvm-9332ddfba69c38f9ceef4175b042fba0bb8e67bb.tar.bz2 |
[Clang] Extend the number of case Sema::CheckForIntOverflow covers
Currently Sema::CheckForIntOverflow misses several case that other compilers
diagnose for overflow in integral constant expressions. This includes the
arguments of a CXXConstructExpr as well as the expressions used in an
ArraySubscriptExpr, CXXNewExpr and CompoundLiteralExpr.
This fixes https://github.com/llvm/llvm-project/issues/58944
Differential Revision: https://reviews.llvm.org/D137897
Diffstat (limited to 'mlir/lib/Transforms/LoopInvariantCodeMotion.cpp')
0 files changed, 0 insertions, 0 deletions