summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-04-23 13:35:32 +0000
committerAlexey Samsonov <samsonov@google.com>2013-04-23 13:35:32 +0000
commitfdcff04ad5ef4aaa4fe381b6662954803951a05d (patch)
tree8417a6ba957258da392152d7c9c54dc204929792 /llvm/lib/Support/Compression.cpp
parent34093f0de8d91cb08f22a1426f5a7b5b0f39d6b2 (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud