[all-commits] [llvm/llvm-project] 609023: [clang] Check constexpr int->enum conversions cons...
Eli Friedman via All-commits
all-commits at lists.llvm.org
Fri Jun 6 08:57:32 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 609023213d3fcc35f6ee3d47dceaf37ffa55e66b
https://github.com/llvm/llvm-project/commit/609023213d3fcc35f6ee3d47dceaf37ffa55e66b
Author: Eli Friedman <efriedma at quicinc.com>
Date: 2025-06-06 (Fri, 06 Jun 2025)
Changed paths:
M clang/lib/AST/ExprConstant.cpp
M clang/test/SemaCXX/constant-expression-cxx11.cpp
Log Message:
-----------
[clang] Check constexpr int->enum conversions consistently. (#143034)
In 8de51375f12d91675a18d17f262276e65f43fbe0 and related patches, we
added some code to avoid triggering -Wenum-constexpr-conversion in some
cases. This isn't necessary anymore because -Wenum-constexpr-conversion
doesn't exist anymore. And the checks are subtly wrong: they exclude
cases where we actually do need to check the conversion. This patch gets
rid of the unnecessary checks.
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