aaron.ballman added a comment. Precommit CI failures are unrelated to this patch.
================ Comment at: clang/lib/AST/ExprConstant.cpp:13547-13550 + if (const auto *VD = dyn_cast_or_null<VarDecl>(Info.EvaluatingDecl.dyn_cast<const ValueDecl *>())) { + if (VD && !VD->isConstexpr()) + ConstexprVar = false; + } ---------------- You already know that `VD` is nonnull, so no need for that check, and we can remove the predicate entirely because you're setting `ConstexprVar` based on `isConstexpr()` anyway. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D131874/new/ https://reviews.llvm.org/D131874 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits