================
@@ -80,8 +80,8 @@ void ReturnBracedInitListCheck::check(const
MatchFinder::MatchResult &Result) {
// Make sure that the ctor arguments match the declaration.
for (unsigned I = 0, NumParams = MatchedConstructExpr->getNumArgs();
I < NumParams; ++I) {
- if (const auto *VD = dyn_cast<VarDecl>(
- MatchedConstructExpr->getConstructor()->getParamDecl(I))) {
+ if (const auto *VD =
----------------
zwuis wrote:
```suggestion
if (const ParmVarDecl *VD =
```
https://github.com/llvm/llvm-project/pull/214024
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits