summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-09-27 20:45:21 +0000
committerTed Kremenek <kremenek@apple.com>2009-09-27 20:45:21 +0000
commite41b81e9ab0d91b4f8572133b4111d27f0654549 (patch)
tree88ad5b0e1417c550a975397076748d891665ff06 /clang/lib/Analysis/CFRefCount.cpp
parentae289632efd31192da8c93d653338cd34f87f85c (diff)
downloadbcm5719-llvm-e41b81e9ab0d91b4f8572133b4111d27f0654549.tar.gz
bcm5719-llvm-e41b81e9ab0d91b4f8572133b4111d27f0654549.zip
Fix:
<rdar://problem/6914474> checker doesn't realize that variable might have been assigned if a pointer to that variable was passed to another function via a structure The problem here was the RegionStoreManager::InvalidateRegion didn't invalidate the bindings of invalidated regions. This required a rewrite of this method using a worklist. As part of this fix, changed ValueManager::getConjuredSymbolVal() to require a 'void*' SymbolTag argument. This tag is used to differentiate two different symbols created at the same location. llvm-svn: 82920
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 970646f7642..75bd25cf5bc 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -2906,7 +2906,7 @@ void CFRefCount::EvalSummary(ExplodedNodeSet& Dst,
if (Loc::IsLocType(T) || (T->isIntegerType() && T->isScalarType())) {
unsigned Count = Builder.getCurrentBlockCount();
ValueManager &ValMgr = Eng.getValueManager();
- SVal X = ValMgr.getConjuredSymbolVal(Ex, T, Count);
+ SVal X = ValMgr.getConjuredSymbolVal(NULL, Ex, T, Count);
state = state->BindExpr(Ex, X, false);
}
OpenPOWER on IntegriCloud