diff options
author | Ken Dyck <kd@kendyck.com> | 2011-01-24 01:55:39 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-01-24 01:55:39 +0000 |
commit | 9ff2b13aee0f89d23ef4820218f9b88bb5e5c1c1 (patch) | |
tree | 4a88020579c3f72c5df9d33f423aec4dd917b558 /lib/StaticAnalyzer/Store.cpp | |
parent | ff3a5174d1f6e7dc98de348aecfdfe1d2fb7cd53 (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.cpp | 2 |
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 |