[index] Fix issue with protocol name locations in conformance list of an ObjC class...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 9 Nov 2016 02:47:07 +0000 (02:47 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 9 Nov 2016 02:47:07 +0000 (02:47 +0000)
commitf95a000421cc56a8693cd1a63fc5b2defb351279
tree84e41a8b4adde87c1ea5abe31f054f446687bbb4
parent0f1ddfa8465291349a380469549b9d8eeea994e2
[index] Fix issue with protocol name locations in conformance list of an ObjC class when they come from a typedef.

The ObjC class protocol list assumes there is an associated location for each protocol but no location is provided
when the protocol list comes from a typedef, and we end up with a buffer overflow when trying to get locations for the protocol names.

Fixes crash of rdar://28980278.

llvm-svn: 286331
clang/include/clang/Sema/Sema.h
clang/lib/Parse/ParseObjc.cpp
clang/lib/Sema/SemaDeclObjC.cpp
clang/test/Index/Core/index-source.m