diff options
author | Devin Coughlin <dcoughlin@apple.com> | 2017-01-11 01:02:34 +0000 |
---|---|---|
committer | Devin Coughlin <dcoughlin@apple.com> | 2017-01-11 01:02:34 +0000 |
commit | aac894feba2ddfaebe07a9e97d44c5427f1088cf (patch) | |
tree | 5551b7fba57da74f3cf6e62b3a13ebb6960c1876 /clang/lib/Lex/ModuleMap.cpp | |
parent | 8260666d11906435a4656efd15309f36b7f801c6 (diff) | |
download | llvm-aac894feba2ddfaebe07a9e97d44c5427f1088cf.zip llvm-aac894feba2ddfaebe07a9e97d44c5427f1088cf.tar.gz llvm-aac894feba2ddfaebe07a9e97d44c5427f1088cf.tar.bz2 |
[analyzer] Fix crash in body farm for getter without implicit self.
Fix a crash in body farm when synthesizing a getter for a property
synthesized for a property declared in a protocol on a class extension
that shadows a declaration of the property in a category.
In this case, Sema doesn't fill in the implicit 'self' parameter for the getter
in the category, which leads to a crash when trying to synthesize the getter
for it.
To avoid the crash, skip getter synthesis in body farm if the self parameter is
not filled int.
rdar://problem/29938138
llvm-svn: 291635
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions