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/MemRegion.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/MemRegion.cpp')
-rw-r--r-- | lib/StaticAnalyzer/MemRegion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/MemRegion.cpp b/lib/StaticAnalyzer/MemRegion.cpp index d3d72b51a7..eca7619d3f 100644 --- a/lib/StaticAnalyzer/MemRegion.cpp +++ b/lib/StaticAnalyzer/MemRegion.cpp @@ -469,7 +469,7 @@ void RegionRawOffset::dump() const { } void RegionRawOffset::dumpToStream(llvm::raw_ostream& os) const { - os << "raw_offset{" << getRegion() << ',' << getByteOffset() << '}'; + os << "raw_offset{" << getRegion() << ',' << getOffset().getQuantity() << '}'; } void StaticGlobalSpaceRegion::dumpToStream(llvm::raw_ostream &os) const { @@ -855,7 +855,7 @@ RegionRawOffset ElementRegion::getAsArrayOffset() const { } assert(superR && "super region cannot be NULL"); - return RegionRawOffset(superR, offset.getQuantity()); + return RegionRawOffset(superR, offset); } RegionOffset MemRegion::getAsOffset() const { |