summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Memory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Memory.cpp')
-rw-r--r--llvm/lib/Support/Memory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Memory.cpp b/llvm/lib/Support/Memory.cpp
index 4a84247abf4..581484268cd 100644
--- a/llvm/lib/Support/Memory.cpp
+++ b/llvm/lib/Support/Memory.cpp
@@ -43,8 +43,8 @@ raw_ostream &operator<<(raw_ostream &OS, const Memory::ProtectionFlags &PF) {
raw_ostream &operator<<(raw_ostream &OS, const MemoryBlock &MB) {
return OS << "[ " << MB.base() << " .. "
- << (void *)((char *)MB.base() + MB.size()) << " ] (" << MB.size()
- << " bytes)";
+ << (void *)((char *)MB.base() + MB.allocatedSize()) << " ] ("
+ << MB.allocatedSize() << " bytes)";
}
} // end namespace sys
OpenPOWER on IntegriCloud