[clang] [Clang] Introduce malloc_span attribute (PR #167010)
Marco Elver via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 10 01:11:56 PST 2025
================
@@ -6642,7 +6642,8 @@ RValue CodeGenFunction::EmitCall(QualType CalleeType,
CalleeDecl);
}
if (CalleeDecl->hasAttr<RestrictAttr>() ||
- CalleeDecl->hasAttr<AllocSizeAttr>()) {
+ CalleeDecl->hasAttr<AllocSizeAttr>() ||
+ CalleeDecl->hasAttr<MallocSpanAttr>()) {
----------------
melver wrote:
Can we do this in a follow-up PR where we also update the test in the same PR?
https://github.com/llvm/llvm-project/pull/167010
More information about the cfe-commits
mailing list