commit | a6846ab2ab70a08c27e1482edf69c6faaa3ab853 | [log] [tgz] |
---|---|---|
author | Corentin Jabot <Corentin.jabot@gmail.com> | Wed Dec 01 12:57:39 2021 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Dec 01 10:02:00 2021 -0800 |
tree | 6b5cd103ce1b415e94d8e50db6e258e959084642 | |
parent | 064a107902e0b4cf79eb97487dffcf6250879c8c [diff] |
[Clang] Fix nesting of discarded and immediate contexts. In C++23, discarded statements and if consteval statements can nest arbitrarily. To support that, we keep track of whether the parent of the current evaluation context is discarded or immediate. This is done at the construction of an evaluation context to improve performance. Fixes https://bugs.llvm.org/show_bug.cgi?id=52231 GitOrigin-RevId: 6eeda06c1d22da2b9fe96a2569a8a0f8e4f36880