================
@@ -13745,6 +13753,11 @@ void Sema::DiagnoseUniqueObjectDuplication(const 
VarDecl *VD) {
 }
 
 void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) {
+  auto ResetDeclForInitializer = llvm::make_scope_exit([this]() {
+    if (this->ExprEvalContexts.empty())
----------------
zwuis wrote:

```suggestion
    if (!this->ExprEvalContexts.empty())
```


https://github.com/llvm/llvm-project/pull/163885
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to