[clang] [clang] Improve diagnostics for constraints of inline asm (NFC) (PR #96363)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 24 06:25:12 PDT 2024
================
@@ -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);
----------------
arsenm wrote:
Where do you get dyn_cast_or_null is deprecated? I only remember a rejected RFC to start using dyn_cast_if_present
https://github.com/llvm/llvm-project/pull/96363
More information about the cfe-commits
mailing list