[clang] [Clang] Introduce malloc_span attribute (PR #167010)
Aleksandr Nogikh via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 10 02:47:59 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>()) {
----------------
a-nogikh wrote:
Removed the change from the present PR
https://github.com/llvm/llvm-project/pull/167010
More information about the cfe-commits
mailing list