mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-22 03:35:35 -04:00
Fix build errors caused by rL373914.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373919 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -530,8 +530,9 @@ std::error_code SampleProfileReaderExtBinaryBase::decompressSection(
|
||||
StringRef CompressedStrings(reinterpret_cast<const char *>(Data),
|
||||
*CompressSize);
|
||||
char *Buffer = Allocator.Allocate<char>(DecompressBufSize);
|
||||
size_t UCSize = DecompressBufSize;
|
||||
llvm::Error E =
|
||||
zlib::uncompress(CompressedStrings, Buffer, DecompressBufSize);
|
||||
zlib::uncompress(CompressedStrings, Buffer, UCSize);
|
||||
if (E)
|
||||
return sampleprof_error::uncompress_failed;
|
||||
DecompressBuf = reinterpret_cast<const uint8_t *>(Buffer);
|
||||
|
||||
Reference in New Issue
Block a user