aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/BasicStore.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-06-16 09:55:50 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-06-16 09:55:50 +0000
commit143b2fc6fd3945c250b333383749010c2c8e3a4c (patch)
treed372e866796eaa2261b7bd0af44fc416f1d5f68f /lib/Analysis/BasicStore.cpp
parent78d5b5e738c81b596f20205437120d5f3d7c5d9e (diff)
Use canonical type for building ElementRegion. Otherwise ElementRegions cannot
be unique. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/BasicStore.cpp')
-rw-r--r--lib/Analysis/BasicStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/BasicStore.cpp b/lib/Analysis/BasicStore.cpp
index 2dd46c3853..ba4c021475 100644
--- a/lib/Analysis/BasicStore.cpp
+++ b/lib/Analysis/BasicStore.cpp
@@ -248,7 +248,7 @@ SVal BasicStoreManager::getLValueElement(const GRState* St,
if (BaseR)
return Loc::MakeVal(MRMgr.getElementRegion(elementType, UnknownVal(),
- BaseR));
+ BaseR, getContext()));
else
return UnknownVal();
}