From fdcff04ad5ef4aaa4fe381b6662954803951a05d Mon Sep 17 00:00:00 2001 From: Alexey Samsonov Date: Tue, 23 Apr 2013 13:35:32 +0000 Subject: Fixup for r180094: properly use MSan interface functions llvm-svn: 180103 --- llvm/lib/Support/Compression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Support') diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp index 36afa8c06b1..fd8a8743ea1 100644 --- a/llvm/lib/Support/Compression.cpp +++ b/llvm/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; } -- cgit v1.2.3