]> granicus.if.org Git - clang/commit
Fix potential infinite loop when iterating over redeclarations of an ObjMethodDecl...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 30 May 2013 18:53:21 +0000 (18:53 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 30 May 2013 18:53:21 +0000 (18:53 +0000)
commitdf08c4b371522025d1d3aec4992fb0f27d7c4571
tree688f459c40a7cacb2d98484b4f396db527595088
parentb347c76054a0a4b8e6d1fce44314f6daf3294c69
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
lib/AST/DeclObjC.cpp
lib/Sema/SemaDeclObjC.cpp
test/Sema/warn-documentation.m