[all-commits] [llvm/llvm-project] 9332dd: [Clang] Extend the number of case Sema::CheckForIn...
Shafik Yaghmour via All-commits
all-commits at lists.llvm.org
Tue Nov 15 12:07:19 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9332ddfba69c38f9ceef4175b042fba0bb8e67bb
https://github.com/llvm/llvm-project/commit/9332ddfba69c38f9ceef4175b042fba0bb8e67bb
Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
Date: 2022-11-15 (Tue, 15 Nov 2022)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaChecking.cpp
A clang/test/Sema/integer-overflow.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list