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 | a1aabcd98714737f1b1c30c889f5943f1770752b (patch) | |
tree | a75342086ae9b430f1b89775ac86b84c9ee958b1 /lib/Support | |
parent | 8effd8dc98a793181b086dbfde31cdcbd2047200 (diff) | |
download | external_llvm-a1aabcd98714737f1b1c30c889f5943f1770752b.zip external_llvm-a1aabcd98714737f1b1c30c889f5943f1770752b.tar.gz external_llvm-a1aabcd98714737f1b1c30c889f5943f1770752b.tar.bz2 |
Fixup for r180094: properly use MSan interface functions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180103 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Compression.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Support/Compression.cpp b/lib/Support/Compression.cpp index 36afa8c..fd8a874 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; } |