================
@@ -7513,6 +7516,30 @@ void Sema::checkCall(NamedDecl *FDecl, const 
FunctionProtoType *Proto,
       }
     }
 
+    auto *CallerFD = dyn_cast<FunctionDecl>(CurContext);
----------------
sdesmalen-arm wrote:

nit: move this closer to its use, preferably wrap the condition, e.g.
```
  if (auto *CallerFD = dyn_cast<..>(..)) {
    ...
  }
```

https://github.com/llvm/llvm-project/pull/79842
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to