commit | df08c4b371522025d1d3aec4992fb0f27d7c4571 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu May 30 18:53:21 2013 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Thu May 30 18:53:21 2013 +0000 |
tree | 688f459c40a7cacb2d98484b4f396db527595088 | |
parent | b347c76054a0a4b8e6d1fce44314f6daf3294c69 [diff] |
Fix potential infinite loop when iterating over redeclarations of an ObjMethodDecl, resulting from invalid code. Check for invalid decls in ObjCMethodDecl::getNextRedeclaration(); otherwise if we start from an invalid redeclaration of an @implementation we would move to the @interface and not reach the original declaration again. Fixes rdar://14024851 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182951 91177308-0d34-0410-b5e6-96231b3b80d8