File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -8283,14 +8283,11 @@ void Sema::redelayDiagnostics(DelayedDiagnosticPool &pool) {
82838283}
82848284
82858285void Sema::ActOnCleanupAttr (Expr *E, Decl *D, const Attr *A) {
8286- FunctionDecl *FD = nullptr ;
8287- DeclarationNameInfo NI;
8288- CleanupAttr *Attr = D->getAttr <CleanupAttr>();
8289-
82908286 // Obtains the FunctionDecl that was found when handling the attribute
82918287 // earlier.
8292- FD = Attr->getFunctionDecl ();
8293- NI = FD->getNameInfo ();
8288+ CleanupAttr *Attr = D->getAttr <CleanupAttr>();
8289+ FunctionDecl *FD = Attr->getFunctionDecl ();
8290+ DeclarationNameInfo NI = FD->getNameInfo ();
82948291
82958292 // We're currently more strict than GCC about what function types we accept.
82968293 // If this ever proves to be a problem it should be easy to fix.
Original file line number Diff line number Diff line change 11// RUN: %clang_cc1 -std=c23 -fsyntax-only -verify %s
22
3- // #GH129631-CleanupAttr
43int open () { return 0 ; }
54void close (typeof (open ()) * ) {}
65
You can’t perform that action at this time.
0 commit comments