diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index cab14396d1d5..9f48fffc28ed 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -1760,8 +1760,8 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst, QualType T = R->getRValueType(Ctx); if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())){ - SVal V = SVal::GetRValueSymbolVal(Eng.getSymbolManager(), - Eng.getStoreManager().getRegionManager(), R); + SVal V = SVal::GetConjuredSymbolVal(Eng.getSymbolManager(), + Eng.getStoreManager().getRegionManager(), *I, Count); state = state.BindLoc(Loc::MakeVal(R), V); } else if (const RecordType *RT = T->getAsStructureType()) {