diff options
author | Vedant Kumar <vsk@apple.com> | 2019-12-13 12:59:40 -0800 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2020-07-13 15:11:18 -0700 |
commit | 8c4a65b9b2ca6961139beca92de37eea479f00fa (patch) | |
tree | ba11262a6769c2a2f052da316f66ee110b429e72 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 724afa5a331372ff1684f2bffa6976887490cbaf (diff) | |
download | llvm-8c4a65b9b2ca6961139beca92de37eea479f00fa.zip llvm-8c4a65b9b2ca6961139beca92de37eea479f00fa.tar.gz llvm-8c4a65b9b2ca6961139beca92de37eea479f00fa.tar.bz2 |
[ubsan] Check implicit casts in ObjC for-in statements
Check that the implicit cast from `id` used to construct the element
variable in an ObjC for-in statement is valid.
This check is included as part of a new `objc-cast` sanitizer, outside
of the main 'undefined' group, as (IIUC) the behavior it's checking for
is not technically UB.
The check can be extended to cover other kinds of invalid casts in ObjC.
Partially addresses: rdar://12903059, rdar://9542496
Differential Revision: https://reviews.llvm.org/D71491
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions