]> granicus.if.org Git - clang/commitdiff
make a conjured symbol as the original code.
authorZhongxing Xu <xuzhongxing@gmail.com>
Thu, 9 Apr 2009 06:18:05 +0000 (06:18 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Thu, 9 Apr 2009 06:18:05 +0000 (06:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68691 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/CFRefCount.cpp

index cab14396d1d5add7fb75eee4852feb49b9cb9bcd..9f48fffc28ed22898b24da30bac7657d97609640 100644 (file)
@@ -1760,8 +1760,8 @@ void CFRefCount::EvalSummary(ExplodedNodeSet<GRState>& 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()) {