================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits