]> granicus.if.org Git - clang/commit
[ubsan] array-bounds: Ignore params with constant size
authorVedant Kumar <vsk@apple.com>
Fri, 8 Dec 2017 19:51:42 +0000 (19:51 +0000)
committerVedant Kumar <vsk@apple.com>
Fri, 8 Dec 2017 19:51:42 +0000 (19:51 +0000)
commit700e3d5d775fa10461d32f1df583d82ef19f580c
tree7b0ab0f9871766ed135387e3cb46e04d8c4344da
parentec621d11666df78d9d9721a580bc5e427ecec0fb
[ubsan] array-bounds: Ignore params with constant size

This is a follow-up to r320128. Eli pointed out that there is some gray
area in the language standard about whether the constant size is exact,
or a lower bound.

https://reviews.llvm.org/D40940

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320185 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGen/ubsan-pass-object-size.c