In LookupResult::resolveKind(), when handling multiple found declarations, ignore...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 22 Feb 2013 06:58:37 +0000 (06:58 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Fri, 22 Feb 2013 06:58:37 +0000 (06:58 +0000)
commit1fcd7fd633a44ab3ec944a5102afea74fcc8a23e
tree8e1241701e8fcf2e566cf19321a269333239656c
parent425daaa5d258d927a5f608fc92f7685dbc36db66
In LookupResult::resolveKind(), when handling multiple found declarations, ignore invalid declarations.

This reduces the "ambiguous reference" errors (which are rather strange in C/ObjC) and fixes an assertion hit
with an invalid code test case.

llvm-svn: 175869
clang/lib/Sema/SemaLookup.cpp
clang/test/Sema/invalid-decl.c
clang/test/SemaObjC/crash-on-objc-bool-literal.m