aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2019-12-13 12:59:40 -0800
committerVedant Kumar <vsk@apple.com>2020-07-13 15:11:18 -0700
commit8c4a65b9b2ca6961139beca92de37eea479f00fa (patch)
treeba11262a6769c2a2f052da316f66ee110b429e72 /clang/lib/CodeGen/CodeGenFunction.cpp
parent724afa5a331372ff1684f2bffa6976887490cbaf (diff)
downloadllvm-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