summaryrefslogtreecommitdiffstats
path: root/clang/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
commitc28614cec4b28fc71fbed181ea8873802e81a549 (patch)
treecae0d6d459507f021cd587d4b2ed90cb37a52831 /clang/lib/StaticAnalyzer/Store.cpp
parent7c4026bea79d41eb6675e571c3744db40e70339c (diff)
downloadbcm5719-llvm-c28614cec4b28fc71fbed181ea8873802e81a549.tar.gz
bcm5719-llvm-c28614cec4b28fc71fbed181ea8873802e81a549.zip
Use CharUnits for the offset amount of RegionRawOffset.
llvm-svn: 124093
Diffstat (limited to 'clang/lib/StaticAnalyzer/Store.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Store.cpp2
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
OpenPOWER on IntegriCloud