[clang] Enable AST mutation in the constant evaluator (PR #115168)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 12 07:28:22 PST 2024
================
@@ -8328,6 +8329,13 @@ class ExprEvaluatorBase
const FunctionDecl *Definition = nullptr;
Stmt *Body = FD->getBody(Definition);
+ if (Info.Ctx.getLangOpts().CPlusPlus26 && Info.getASTMutator() &&
----------------
erichkeane wrote:
Based on our discussion, the C++26 check is probably wrong.
https://github.com/llvm/llvm-project/pull/115168
More information about the cfe-commits
mailing list