[PATCH] D113749: [Clang] Fix nesting of discarded an immediate context.

2021-11-12 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin updated this revision to Diff 386783. cor3ntin added a comment. Fix commit message Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D113749/new/ https://reviews.llvm.org/D113749 Files: clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaEx

[PATCH] D113749: [Clang] Fix nesting of discarded an immediate context.

2021-11-12 Thread Corentin Jabot via Phabricator via cfe-commits
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 ev