diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-04-23 13:35:32 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-04-23 13:35:32 +0000 |
commit | fdcff04ad5ef4aaa4fe381b6662954803951a05d (patch) | |
tree | 8417a6ba957258da392152d7c9c54dc204929792 /llvm/lib/Support/Compression.cpp | |
parent | 34093f0de8d91cb08f22a1426f5a7b5b0f39d6b2 (diff) | |
download | bcm5719-llvm-fdcff04ad5ef4aaa4fe381b6662954803951a05d.tar.gz bcm5719-llvm-fdcff04ad5ef4aaa4fe381b6662954803951a05d.zip |
Fixup for r180094: properly use MSan interface functions
llvm-svn: 180103
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
-rw-r--r-- | llvm/lib/Support/Compression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |