<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 7, 2022 at 4:48 PM Philip Reames via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>I think I've already killed several of the ones you note.  I agree
    there's definite room to improve the handling of strdup/strndup.  If
    you wanted to write a patch for that specifically, I'd be happy to
    review.</p></div></blockquote><div>IMO, it doesn't seem worthwhile to make strdup handling expressible with generic attributes. We special case many other libc functions too, so this is not unusual, and unlike other allocator properties, "strdup-like" does not seem likely to be a very interesting thing to apply to other functions.</div><div><br></div></div></div>