================
@@ -34,7 +34,7 @@ static EntityLinkageType getLinkageForDecl(const Decl *D) {
// to be assigned different EntityIDs. As a result, the behavior of the
// parameter across multiple TUs cannot be correlated.
if (const auto *PVD = dyn_cast<ParmVarDecl>(D)) {
- if (const auto *FD = llvm::dyn_cast<FunctionDecl>(
+ if (const auto *FD = llvm::dyn_cast_or_null<FunctionDecl>(
----------------
steakhal wrote:
Ah, the classics.
https://github.com/llvm/llvm-project/pull/201946
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits