diff options
author | Eli Friedman <efriedma@quicinc.com> | 2025-03-09 18:38:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-09 18:38:55 -0700 |
commit | 42d49a77241df73a17cb442973702fc460e7fb90 (patch) | |
tree | e0586f5ada190ee453cbb83afd67d2a7b842c331 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d111e6481afa71fedc0a1877d20943e43954edce (diff) | |
download | llvm-42d49a77241df73a17cb442973702fc460e7fb90.zip llvm-42d49a77241df73a17cb442973702fc460e7fb90.tar.gz llvm-42d49a77241df73a17cb442973702fc460e7fb90.tar.bz2 |
[clang] Reject constexpr-unknown values as constant expressions more consistently (#129952)
Perform the check for constexpr-unknown values in the same place we
perform checks for other values which don't count as constant
expressions.
While I'm here, also fix a rejects-valid with a reference that doesn't
have an initializer. This diagnostic was also covering up some of the
bugs here.
The existing behavior with -fexperimental-new-constant-interpreter seems
to be correct, but the diagnostics are slightly different; it would be
helpful if someone could check on that as a followup.
Followup to #128409.
Fixes #129844. Fixes #129845.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions