This is the part of the allocsize patch that makes llvm.objectsize recognize the allocsize attribute introduced by D14933.
This is intended to be committed with D14933, but is split out to hopefully make this easier to review.
(Also, this diff is made assuming D14933 has already landed, so if you want to use this locally, you'll need to apply it on top of the diff in D14933)
Is this related to your attribute change? If it just cleanup, commit separately now.