diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2016-03-22 05:00:21 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2016-03-22 05:00:21 +0000 |
commit | 7e2c82da90e9a47de674f0dc518af8deac4946d6 (patch) | |
tree | 471897475e2682633ce04dbee18165acdcb32a04 /clang/lib/Sema/ScopeInfo.cpp | |
parent | 5ac1a47cadd81fc80a8c166567058ccab009ceef (diff) | |
download | bcm5719-llvm-7e2c82da90e9a47de674f0dc518af8deac4946d6.tar.gz bcm5719-llvm-7e2c82da90e9a47de674f0dc518af8deac4946d6.zip |
[Objective-c] Do not set IsExact to true when the receiver is a class.
IsExact shouldn't be set to true in WeakObjectProfileTy::getBaseInfo
when the receiver is a class because having a class as the receiver
doesn't guarantee that the Base is exact.
This is a follow-up to r263818.
rdar://problem/25208167
llvm-svn: 264025
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-rw-r--r-- | clang/lib/Sema/ScopeInfo.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index d18328878c7..037ffd843bb 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/lib/Sema/ScopeInfo.cpp @@ -86,9 +86,7 @@ FunctionScopeInfo::WeakObjectProfileTy::getBaseInfo(const Expr *E) { if (BaseProp) { D = getBestPropertyDecl(BaseProp); - if (BaseProp->isClassReceiver()) - IsExact = true; - else { + if (BaseProp->isObjectReceiver()) { const Expr *DoubleBase = BaseProp->getBase(); if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(DoubleBase)) DoubleBase = OVE->getSourceExpr(); |