diff options
author | Eli Friedman <efriedma@quicinc.com> | 2025-06-17 16:43:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-17 16:43:55 -0700 |
commit | f2d2c99866dfd133e7b9c98b1d4983c6bce33d67 (patch) | |
tree | 22fbfdc261b9290c60c726d72c3b966a3b211489 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | b164d3613ad9b86a8b951cfc43fadc0edfc7644e (diff) | |
download | llvm-f2d2c99866dfd133e7b9c98b1d4983c6bce33d67.zip llvm-f2d2c99866dfd133e7b9c98b1d4983c6bce33d67.tar.gz llvm-f2d2c99866dfd133e7b9c98b1d4983c6bce33d67.tar.bz2 |
[clang] Remove separate evaluation step for static class member init. (#142713)
We already evaluate the initializers for all global variables, as
required by the standard. Leverage that evaluation instead of trying to
separately validate static class members.
This has a few benefits:
- Improved diagnostics; we now get notes explaining what failed to
evaluate.
- Improved correctness: is_constant_evaluated is handled correctly.
The behavior follows the proposed resolution for CWG1721.
Fixes #88462. Fixes #99680.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions