[clang] [Clang] Fix a regression introduced by #138518 (PR #141342)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Tue May 27 11:18:30 PDT 2025


================
@@ -14086,7 +14091,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) {
   // The form of initialization (using parentheses or '=') is generally
   // insignificant, but does matter when the entity being initialized has a
   // class type.
----------------
shafik wrote:

```suggestion
  // The form of initialization (using parentheses or '=') matters
  // when the entity being initialized has class type.
```

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


More information about the cfe-commits mailing list