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)
commitb2c7a763f57a6ae1c61bc0987e69773d653df2aa
treedcc26a812a498e0e0cc37a097660242023016462
parent6f7238f35a974f843d3cbb2fe1740ce09f640db7
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclAttr.cpp
test/Sema/alloc-size.c