[clang] [llvm] [Clang] Fix cleanup attribute by delaying type checks after the type is deduced (PR #164440)
Guillot Tony via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 13 09:52:39 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())
----------------
to268 wrote:
The function is currently called in 2 separate locations, it could be worth to inline it if we want to avoid an extra call for a function this small.
https://github.com/llvm/llvm-project/pull/164440
More information about the cfe-commits
mailing list