forked from OSchip/llvm-project
parent
26a3661a10
commit
be4008472d
|
@ -2857,7 +2857,6 @@ void RetainCountChecker::checkSummary(const RetainSummary &Summ,
|
||||||
|
|
||||||
// Consult the summary for the return value.
|
// Consult the summary for the return value.
|
||||||
RetEffect RE = Summ.getRetEffect();
|
RetEffect RE = Summ.getRetEffect();
|
||||||
assert(CallOrMsg.getOriginExpr());
|
|
||||||
|
|
||||||
if (RE.getKind() == RetEffect::OwnedWhenTrackedReceiver) {
|
if (RE.getKind() == RetEffect::OwnedWhenTrackedReceiver) {
|
||||||
if (ReceiverIsTracked)
|
if (ReceiverIsTracked)
|
||||||
|
@ -2900,7 +2899,7 @@ void RetainCountChecker::checkSummary(const RetainSummary &Summ,
|
||||||
SymbolRef Sym = state->getSVal(Ex, C.getLocationContext()).getAsSymbol();
|
SymbolRef Sym = state->getSVal(Ex, C.getLocationContext()).getAsSymbol();
|
||||||
if (!Sym)
|
if (!Sym)
|
||||||
break;
|
break;
|
||||||
|
assert(Ex);
|
||||||
// Use GetReturnType in order to give [NSFoo alloc] the type NSFoo *.
|
// Use GetReturnType in order to give [NSFoo alloc] the type NSFoo *.
|
||||||
QualType ResultTy = GetReturnType(Ex, C.getASTContext());
|
QualType ResultTy = GetReturnType(Ex, C.getASTContext());
|
||||||
state = setRefBinding(state, Sym, RefVal::makeNotOwned(RE.getObjKind(),
|
state = setRefBinding(state, Sym, RefVal::makeNotOwned(RE.getObjKind(),
|
||||||
|
|
Loading…
Reference in New Issue