[clang] Enable AST mutation in the constant evaluator (PR #115168)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 15 07:37:41 PST 2024


================
@@ -8328,6 +8329,13 @@ class ExprEvaluatorBase
 
     const FunctionDecl *Definition = nullptr;
     Stmt *Body = FD->getBody(Definition);
+    if (Info.Ctx.getLangOpts().CPlusPlus26 && Info.getASTMutator() &&
----------------
Endilll wrote:

Fixed

https://github.com/llvm/llvm-project/pull/115168


More information about the cfe-commits mailing list