================
@@ -2626,14 +2629,20 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) {
SmallVector<TargetInfo::ConstraintInfo, 4> OutputConstraintInfos;
SmallVector<TargetInfo::ConstraintInfo, 4> InputConstraintInfos;
+ const FunctionDecl *FD = dyn_cast_or_null<FunctionDecl>(CurCodeDecl);
----------------
Sirraide wrote:
```suggestion
const auto *FD = dyn_cast_if_present<FunctionDecl>(CurCodeDecl);
```
`dyn_cast_or_null` is deprecated (also, no need to spell out the type here
since it’s already evident from the cast).
https://github.com/llvm/llvm-project/pull/96363
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits