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 @@ -8303,14 +8303,11 @@ void Sema::redelayDiagnostics(DelayedDiagnosticPool &pool) {
83038303}
83048304
83058305void Sema::ActOnCleanupAttr (Expr *E, Decl *D, const Attr *A) {
8306- FunctionDecl *FD = nullptr ;
8307- DeclarationNameInfo NI;
8308- CleanupAttr *Attr = D->getAttr <CleanupAttr>();
8309-
83108306 // Obtains the FunctionDecl that was found when handling the attribute
83118307 // earlier.
8312- FD = Attr->getFunctionDecl ();
8313- NI = FD->getNameInfo ();
8308+ CleanupAttr *Attr = D->getAttr <CleanupAttr>();
8309+ FunctionDecl *FD = Attr->getFunctionDecl ();
8310+ DeclarationNameInfo NI = FD->getNameInfo ();
83148311
83158312 // We're currently more strict than GCC about what function types we accept.
83168313 // 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