diff options
| author | Alex Lorenz <arphaman@gmail.com> | 2016-11-21 11:16:30 +0000 |
|---|---|---|
| committer | Alex Lorenz <arphaman@gmail.com> | 2016-11-21 11:16:30 +0000 |
| commit | ff6c34b30ddc2339a32ce8bc7e294f76c7640ab5 (patch) | |
| tree | de2d1efd96220e4ef479aaf08604cb0741a1450c /llvm/lib/Transforms | |
| parent | 9229d332bfc4521d6213d3cc9b485e70f812f1ee (diff) | |
| download | bcm5719-llvm-ff6c34b30ddc2339a32ce8bc7e294f76c7640ab5.tar.gz bcm5719-llvm-ff6c34b30ddc2339a32ce8bc7e294f76c7640ab5.zip | |
[ObjC] Prevent infinite loops when iterating over redeclaration
of a method that was declared in an invalid interface
This commit fixes an infinite loop that occurs when clang tries to iterate over
redeclaration of a method that was declared in an invalid @interface. The
existing validity checks don't catch this as that @interface is a duplicate of
a previously declared valid @interface declaration, so we have to verify that
the found redeclaration is in a valid declaration context.
rdar://29220965
Differential Revision: https://reviews.llvm.org/D26664
llvm-svn: 287530
Diffstat (limited to 'llvm/lib/Transforms')
0 files changed, 0 insertions, 0 deletions

