mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
Fixup for r180094: properly use MSan interface functions
llvm-svn: 180103
This commit is contained in:
parent
76deb51f42
commit
ff8e66a66d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user