You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is UB to cast integers to enums outside of the valid range
of the enum.
Clang will turn `-Wenum-constexpr-conversion` into a hard error:
llvm/llvm-project#59036
This CL changes BitField::kMax to be the unsigned representation
integer type.
And all checks "Enum::kA <= BitField::kMax" to
"BitField::is_valid(Enum::kA)"
Change-Id: I2b0094c72b16fdde3bb2a90901f83e5a6e7d8176
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5816333
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#95845}
0 commit comments