aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/RegionStore.cpp
diff options
context:
space:
mode:
authorKen Dyck <kd@kendyck.com>2011-01-24 01:55:39 +0000
committerKen Dyck <kd@kendyck.com>2011-01-24 01:55:39 +0000
commit9ff2b13aee0f89d23ef4820218f9b88bb5e5c1c1 (patch)
tree4a88020579c3f72c5df9d33f423aec4dd917b558 /lib/StaticAnalyzer/RegionStore.cpp
parentff3a5174d1f6e7dc98de348aecfdfe1d2fb7cd53 (diff)
Use CharUnits for the offset amount of RegionRawOffset.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/RegionStore.cpp')
-rw-r--r--lib/StaticAnalyzer/RegionStore.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/RegionStore.cpp b/lib/StaticAnalyzer/RegionStore.cpp
index 3c048064f6..986278e628 100644
--- a/lib/StaticAnalyzer/RegionStore.cpp
+++ b/lib/StaticAnalyzer/RegionStore.cpp
@@ -86,7 +86,7 @@ BindingKey BindingKey::Make(const MemRegion *R, Kind k) {
// FIXME: There are some ElementRegions for which we cannot compute
// raw offsets yet, including regions with symbolic offsets. These will be
// ignored by the store.
- return BindingKey(O.getRegion(), O.getByteOffset(), k);
+ return BindingKey(O.getRegion(), O.getOffset().getQuantity(), k);
}
return BindingKey(R, 0, k);