[all-commits] [llvm/llvm-project] d25e0a: [Sema] Fixed faulty shift count warning (#69521)
Karl-Johan Karlsson via All-commits
all-commits at lists.llvm.org
Wed Oct 25 00:48:18 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d25e0aac415f45ce98c3700010acb5a98f016cef
https://github.com/llvm/llvm-project/commit/d25e0aac415f45ce98c3700010acb5a98f016cef
Author: Karl-Johan Karlsson <karl-johan.karlsson at ericsson.com>
Date: 2023-10-25 (Wed, 25 Oct 2023)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaExpr.cpp
M clang/test/Sema/c2x-expr-range.c
Log Message:
-----------
[Sema] Fixed faulty shift count warning (#69521)
Constant values of _BitInt have the bitwith to exactly fit the constant
number. This patch fix a problem in Sema when building an APInt where
the supplied bitwidth can become too small and simply truncate the value
leading to a faulty warning.
More information about the All-commits
mailing list