]> granicus.if.org Git - clang/commit
[ubsan] Disable bounds-check for flexible array ivars
authorVedant Kumar <vsk@apple.com>
Tue, 4 Oct 2016 20:36:04 +0000 (20:36 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 4 Oct 2016 20:36:04 +0000 (20:36 +0000)
commitbc55776aa4165860572ab45f16278ff904c39435
treeb33bd5adab4d96c5613486e08867ce1df6e113c0
parent9c15a0692d502cdd521dbfd0b5428c5f65a471f1
[ubsan] Disable bounds-check for flexible array ivars

This eliminates a class of false positives for -fsanitize=array-bounds
on instrumented ObjC projects.

Differential Revision: https://reviews.llvm.org/D22227

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@283249 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
test/CodeGenObjC/ubsan-array-bounds.m [new file with mode: 0644]