]> granicus.if.org Git - clang/commitdiff
Fix PR4182.
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 8 May 2009 23:28:07 +0000 (23:28 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 8 May 2009 23:28:07 +0000 (23:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@71288 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 7f103dfab25a1ffb5c72f2476c7de6e378691325..017526cb83b501f4d28a837b9b004b89cc8790d4 100644 (file)
@@ -1063,10 +1063,10 @@ Store RegionStoreManager::RemoveDeadBindings(const GRState* state, Stmt* Loc,
 
       // Get the current set of subregions for SuperR.
       const SubRegionsTy* SRptr = SubRegMap.lookup(SuperR);
-      SubRegionsTy SR = SRptr ? *SRptr : SubRegF.GetEmptySet();
+      SubRegionsTy SRs = SRptr ? *SRptr : SubRegF.GetEmptySet();
 
       // Add R to the subregions of SuperR.
-      SubRegMap = SubRegMapF.Add(SubRegMap, SuperR, SubRegF.Add(SR, R));
+      SubRegMap = SubRegMapF.Add(SubRegMap, SuperR, SubRegF.Add(SRs, R));
 
       // Super region may be VarRegion or subregion of another VarRegion. Add it
       // to the work list.