[clang] [llvm] [Clang] Fix cleanup attribute by delaying type checks after the type is deduced (PR #164440)

Erich Keane via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 13 09:15:38 PST 2025


================
@@ -3355,6 +3355,15 @@ void Sema::mergeDeclAttributes(NamedDecl *New, Decl *Old,
   if (!foundAny) New->dropAttrs();
 }
 
+void Sema::CheckAttributesOnDeducedType(Decl *D) {
+  if (!D->hasAttrs())
----------------
erichkeane wrote:

This isn't really necessary, is it? 

https://github.com/llvm/llvm-project/pull/164440


More information about the llvm-commits mailing list