When diagnosing the arguments to alloc_size, report the failing argument using a...
authorAaron Ballman <aaron@aaronballman.com>
Sun, 25 Feb 2018 20:40:06 +0000 (20:40 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sun, 25 Feb 2018 20:40:06 +0000 (20:40 +0000)
commit836684aff3aeacb981ff500622d98981e9ac89ae
tree6bac41f650592730fce892d91126fb24ae653ce9
parentbd0f656631d12b8e65a7961e4c73371e2580ddb6
When diagnosing the arguments to alloc_size, report the failing argument using a 1-based index instead of a 0-based index for consistency.

Patch by Joel Denny.

llvm-svn: 326058
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/Sema/alloc-size.c