aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2025-03-09 18:38:55 -0700
committerGitHub <noreply@github.com>2025-03-09 18:38:55 -0700
commit42d49a77241df73a17cb442973702fc460e7fb90 (patch)
treee0586f5ada190ee453cbb83afd67d2a7b842c331 /clang/lib/CodeGen/CodeGenModule.cpp
parentd111e6481afa71fedc0a1877d20943e43954edce (diff)
downloadllvm-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