Make alloc_size only applicable to Functions.
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 22 Dec 2016 18:48:34 +0000 (18:48 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Thu, 22 Dec 2016 18:48:34 +0000 (18:48 +0000)
commit48badd66aeed20d0a52412b87e5f6856493f4a3a
tree56988bb1482a77be2288044c3fc46f8da3dcd446
parente17f6215292a87ac449eae820cb7557f0812f57b
Make alloc_size only applicable to Functions.

I don't remember why I didn't make alloc_size only applicable to
Functions a year ago, but I can't see any compelling reason not to do
so now.

Fixes PR31453.

llvm-svn: 290353
clang/include/clang/Basic/Attr.td
clang/test/Sema/alloc-size.c