diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-06-23 00:46:41 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-06-23 00:46:41 +0000 |
commit | fb87e308150f079bb602199d661b10d736b9dc55 (patch) | |
tree | fb4fafe21ec4789e4729b1997a92d8b4f5a2ae3e /clang/lib/Analysis/BasicStore.cpp | |
parent | 2fe5b26414c3fac29a3b897ba02c2fb494aaab23 (diff) | |
download | bcm5719-llvm-fb87e308150f079bb602199d661b10d736b9dc55.tar.gz bcm5719-llvm-fb87e308150f079bb602199d661b10d736b9dc55.zip |
MemRegions:
- Embed a reference to MemRegionManager objects in MemSpaceRegion objects
- Use this embedded reference for MemRegion objects to access ASTContext objects without external help
- Use this access to ASTContext to simplify 'isBoundable' (no ASTContext& argument required)
llvm-svn: 73935
Diffstat (limited to 'clang/lib/Analysis/BasicStore.cpp')
-rw-r--r-- | clang/lib/Analysis/BasicStore.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BasicStore.cpp b/clang/lib/Analysis/BasicStore.cpp index fcb405d2d20..dd23f31bbeb 100644 --- a/clang/lib/Analysis/BasicStore.cpp +++ b/clang/lib/Analysis/BasicStore.cpp @@ -351,7 +351,7 @@ Store BasicStoreManager::BindInternal(Store store, Loc loc, SVal V) { // are incompatible. This may also cause lots of breakage // elsewhere. Food for thought. if (const TypedRegion *TyR = dyn_cast<TypedRegion>(R)) { - if (TyR->isBoundable(C) && + if (TyR->isBoundable() && Loc::IsLocType(TyR->getValueType(C))) V = X->getLoc(); } |