diff options
| author | Vedant Kumar <vsk@apple.com> | 2018-06-26 02:50:04 +0000 |
|---|---|---|
| committer | Vedant Kumar <vsk@apple.com> | 2018-06-26 02:50:04 +0000 |
| commit | 03dd150a988eb28b29ef24c3202b09e37e1de80f (patch) | |
| tree | 183a0337016c9b9616b6fa01c7dd4de39d4541a0 /clang/lib/Sema/SemaCUDA.cpp | |
| parent | 2a46384c21a93d827d624e8d00c16377a5c0c12c (diff) | |
| download | bcm5719-llvm-03dd150a988eb28b29ef24c3202b09e37e1de80f.tar.gz bcm5719-llvm-03dd150a988eb28b29ef24c3202b09e37e1de80f.zip | |
[ubsan] Relax nullability-return for blocks with deduced types
When the return type of an ObjC-style block literals is deduced, pick
the candidate type with the strictest nullability annotation applicable
to every other candidate.
This suppresses a UBSan false-positive in situations where a too-strict
nullability would be deduced, despite the fact that the returned value
would be implicitly cast to _Nullable.
rdar://41317163
llvm-svn: 335572
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
0 files changed, 0 insertions, 0 deletions

