зеркало из https://github.com/microsoft/clang-1.git
Temporarily treat "Autorelease" as "StopTracking". This is the original behavior.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
b7cfe88e88
Коммит
80d753fd31
|
@ -1818,7 +1818,6 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym,
|
|||
default:
|
||||
assert (false && "Unhandled CFRef transition.");
|
||||
|
||||
case Autorelease:
|
||||
case MayEscape:
|
||||
if (V.getKind() == RefVal::Owned) {
|
||||
V = V ^ RefVal::NotOwned;
|
||||
|
@ -1836,6 +1835,7 @@ CFRefCount::RefBindings CFRefCount::Update(RefBindings B, SymbolID sym,
|
|||
|
||||
return B;
|
||||
|
||||
case Autorelease:
|
||||
case StopTracking:
|
||||
return RefBFactory.Remove(B, sym);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче