[all-commits] [llvm/llvm-project] 577f88: [ExprConstant] Handle shift overflow the same way ...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Fri Jul 26 00:26:51 PDT 2024
Branch: refs/heads/release/19.x
Home: https://github.com/llvm/llvm-project
Commit: 577f886f2ef32dc19d7534a0d4873269cd4d1efe
https://github.com/llvm/llvm-project/commit/577f886f2ef32dc19d7534a0d4873269cd4d1efe
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2024-07-26 (Fri, 26 Jul 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/AST/ExprConstant.cpp
M clang/lib/AST/Interp/Interp.h
M clang/lib/Sema/SemaExpr.cpp
M clang/test/CXX/basic/basic.types/p10.cpp
M clang/test/Sema/constant-builtins-2.c
M clang/test/SemaCXX/class.cpp
M clang/test/SemaCXX/enum.cpp
Log Message:
-----------
[ExprConstant] Handle shift overflow the same way as other kinds of overflow (#99579)
We have a mechanism to allow folding expressions that aren't ICEs as an
extension; use it more consistently.
This ends up causing bad effects on diagnostics in a few cases, but
that's not specific to shifts; it's a general issue with the way those
uses handle overflow diagnostics.
(cherry picked from commit 20eff684203287828d6722fc860b9d3621429542)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list