================
@@ -3904,6 +3904,13 @@ static void handleCleanupAttr(Sema &S, Decl *D, const
ParsedAttr &AL) {
return;
}
+ // If a declaration contains multiple cleanup attributes, GCC only uses
+ // the last one.
+ if (auto *A = D->getAttr<CleanupAttr>()) {
----------------
AaronBallman wrote:
```suggestion
if (const auto *A = D->getAttr<CleanupAttr>()) {
```
https://github.com/llvm/llvm-project/pull/207785
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits