[clang] [C23] Implement N3018: The constexpr specifier for object definitions (PR #73099)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 22 02:36:09 PST 2023
================
@@ -4110,6 +4117,10 @@ static CompleteObject findCompleteObject(EvalInfo &Info, const Expr *E,
}
bool IsConstant = BaseType.isConstant(Info.Ctx);
+ bool ConstexprVar = false;
+ if (const auto *VD = dyn_cast_or_null<VarDecl>(
----------------
tbaederr wrote:
```suggestion
if (const auto *VD = dyn_cast_if_present<VarDecl>(
```
https://github.com/llvm/llvm-project/pull/73099
More information about the cfe-commits
mailing list