[PATCH] D113749: [Clang] Fix nesting of discarded an immediate context.
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 12 03:30:12 PST 2021
cor3ntin created this revision.
cor3ntin requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
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.
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 5433 bytes
Desc: not available
More information about the cfe-commits