]> granicus.if.org Git - clang/commit
Teach IsTailPaddedMemberArray() (used by -Warray-bounds) that a FieldDecl may have...
authorTed Kremenek <kremenek@apple.com>
Wed, 9 May 2012 05:35:08 +0000 (05:35 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 9 May 2012 05:35:08 +0000 (05:35 +0000)
commit00e1f6f5fed4f33f67181578be0232accd342282
tree95cebec5ab347f9838b1d10cf3f60f2250102048
parent4493c0aa8add05b2fc534b0d8970c4b5480fad3b
Teach IsTailPaddedMemberArray() (used by -Warray-bounds) that a FieldDecl may have a Typedef type, and not always a ConstantArrayType.

Fixes <rdar://problem/11387038>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156464 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/Sema/array-bounds-ptr-arith.c