[Objective-c] Fix a crash in WeakObjectProfileTy::getBaseInfo.
authorAkira Hatanaka <ahatanaka@apple.com>
Fri, 18 Mar 2016 19:03:50 +0000 (19:03 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Fri, 18 Mar 2016 19:03:50 +0000 (19:03 +0000)
commit4c62c7c981e9c66bb21f7229b715fe833e39b955
tree7f0b93a79c8d417b29ba0f70b3050de6d14747ee
parentfbd7787d7e7ef84973c087bef2e7351717cd2fc9
[Objective-c] Fix a crash in WeakObjectProfileTy::getBaseInfo.

The crash occurs in WeakObjectProfileTy::getBaseInfo when getBase() is
called on an ObjCPropertyRefExpr object whose receiver is an interface.
This commit fixes the crash by checking the type of the receiver and
setting IsExact to true if it is an interface.

rdar://problem/25208167

Differential Revision: http://reviews.llvm.org/D18268

llvm-svn: 263818
clang/lib/Sema/ScopeInfo.cpp
clang/test/SemaObjC/arc-repeated-weak.mm