summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-10-17 20:28:54 +0000
committerTed Kremenek <kremenek@apple.com>2008-10-17 20:28:54 +0000
commit8b103c65c6ae4e1d2886417534bd02e31d6a18fc (patch)
tree9dc9fed8248c3fd7a5e99bee43b587041cd24a6b /clang/lib/Analysis/RegionStore.cpp
parentfc1066db815d930372783efc565451a7f0e158e6 (diff)
downloadbcm5719-llvm-8b103c65c6ae4e1d2886417534bd02e31d6a18fc.tar.gz
bcm5719-llvm-8b103c65c6ae4e1d2886417534bd02e31d6a18fc.zip
- constify some uses of MemRegion* (MemRegion should be immutable).
- Added new region "SymbolicRegion", which maps symbol values to the region domain. - Enhanced BasicStore::getFieldLValue() to return a FieldRegion (using SymbolicRegion) - Added some utility methods to GRState for fetch svals from the store. - Fixed regression in CheckNSError (we weren't getting the value bound to the parameter) llvm-svn: 57717
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 6757f43ae10..48706ce8054 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -52,7 +52,7 @@ public:
Store RegionStoreManager::SetSVal(Store store, Loc LV, SVal V) {
assert(LV.getSubKind() == loc::MemRegionKind);
- MemRegion* R = cast<loc::MemRegionVal>(LV).getRegion();
+ const MemRegion* R = cast<loc::MemRegionVal>(LV).getRegion();
if (!R)
return store;
OpenPOWER on IntegriCloud