[clang] [clang][Sema] Fix for enums overflowing (#24667) (PR #78742)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 5 09:19:57 PST 2024
================
@@ -211,6 +217,8 @@ Bug Fixes in This Version
- Clang now doesn't produce false-positive warning `-Wconstant-logical-operand`
for logical operators in C23.
Fixes (`#64356 <https://github.com/llvm/llvm-project/issues/64356>`_).
+- Fixes miscompilation when an enum has a specified value such that the auto
+ increment overflows a signed long. Fixes (`#24667 <https://github.com/llvm/llvm-project/issues/24667>`_)
----------------
AaronBallman wrote:
```suggestion
- Fixes a miscompilation when an enum has a specified value such that the automatic
increment overflows a ``signed long``. Fixes #GH24667.
```
https://github.com/llvm/llvm-project/pull/78742
More information about the cfe-commits
mailing list