diff options
author | Douglas Gregor <dgregor@apple.com> | 2015-10-09 20:36:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2015-10-09 20:36:17 +0000 |
commit | d4f2afa23c8b4a26d553c5e5126351f1d7157f93 (patch) | |
tree | e18aea9cb828c00fc0d29d09f46213183e679138 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 6ccc8ca6d9715c76eb89f0d338b2a782f1edd0c4 (diff) | |
download | llvm-d4f2afa23c8b4a26d553c5e5126351f1d7157f93.zip llvm-d4f2afa23c8b4a26d553c5e5126351f1d7157f93.tar.gz llvm-d4f2afa23c8b4a26d553c5e5126351f1d7157f93.tar.bz2 |
Fix inference of _Nullable for weak Objective-C properties.
The inference of _Nullable for weak Objective-C properties was broken
in several ways:
* It was back-patching the type information very late in the process
of checking the attributes for an Objective-C property, which is
just wrong.
* It was using ad hoc checks to try to suppress the warning about
missing nullability specifiers (-Wnullability-completeness), which
didn't actual work in all cases (rdar://problem/22985457)
* It was inferring _Nullable even outside of assumes-nonnull regions,
which is wrong.
Putting the inference of _Nullable for weak Objective-C properties in
the same place as all of the other inference logic fixes all of these
ills.
llvm-svn: 249896
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions