aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Store.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/Store.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/Store.cpp')
-rw-r--r--lib/StaticAnalyzer/Store.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Store.cpp b/lib/StaticAnalyzer/Store.cpp
index d162eed247..fa671a3bb0 100644
--- a/lib/StaticAnalyzer/Store.cpp
+++ b/lib/StaticAnalyzer/Store.cpp
@@ -147,7 +147,7 @@ const MemRegion *StoreManager::CastRegion(const MemRegion *R, QualType CastToTy)
if (!baseR)
return NULL;
- CharUnits off = CharUnits::fromQuantity(rawOff.getByteOffset());
+ CharUnits off = rawOff.getOffset();
if (off.isZero()) {
// Edge case: we are at 0 bytes off the beginning of baseR. We