diff options
Diffstat (limited to 'clang/lib/StaticAnalyzer/Store.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Store.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Store.cpp b/clang/lib/StaticAnalyzer/Store.cpp index d162eed2477..fa671a3bb0e 100644 --- a/clang/lib/StaticAnalyzer/Store.cpp +++ b/clang/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 |