[clang] Reland "[Modules] Record whether VarDecl initializers contain side effects" (PR #145447)

Chuanqi Xu via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 23 20:14:26 PDT 2025


================
@@ -16719,6 +16719,9 @@ static bool EvaluateInPlace(APValue &Result, EvalInfo &Info, const LValue &This,
                             const Expr *E, bool AllowNonLiteralTypes) {
   assert(!E->isValueDependent());
 
+  if (E->getType().isNull())
----------------
ChuanqiXu9 wrote:

Let's add a comment for what you write in the commit message.

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


More information about the cfe-commits mailing list