aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/Compression.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/Compression.cpp')
-rw-r--r--lib/Support/Compression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Compression.cpp b/lib/Support/Compression.cpp
index 36afa8c06b..fd8a8743ea 100644
--- a/lib/Support/Compression.cpp
+++ b/lib/Support/Compression.cpp
@@ -60,7 +60,7 @@ zlib::Status zlib::compress(StringRef InputBuffer,
CompressedBuffer.reset(MemoryBuffer::getMemBufferCopy(
StringRef(TmpBuffer.get(), CompressedSize)));
// Tell MSan that memory initialized by zlib is valid.
- __msan_unpoison(CompressedBuffer.data(), CompressedBuffer.size());
+ __msan_unpoison(CompressedBuffer->getBufferStart(), CompressedSize);
}
return Res;
}
@@ -76,7 +76,7 @@ zlib::Status zlib::uncompress(StringRef InputBuffer,
UncompressedBuffer.reset(MemoryBuffer::getMemBufferCopy(
StringRef(TmpBuffer.get(), UncompressedSize)));
// Tell MSan that memory initialized by zlib is valid.
- __msan_unpoison(UncompressedBuffer.data(), UncompressedBuffer.size());
+ __msan_unpoison(UncompressedBuffer->getBufferStart(), UncompressedSize);
}
return Res;
}