diff options
author | Wei Mi <wmi@google.com> | 2019-10-07 16:45:47 +0000 |
---|---|---|
committer | Wei Mi <wmi@google.com> | 2019-10-07 16:45:47 +0000 |
commit | 283df8cf742803ad0946dbb2b4ff1e9d1eaed7aa (patch) | |
tree | 9adfae078bfdd481a2ed206f7a3188d2bd0cddf1 /llvm/lib/ProfileData | |
parent | 7e38f0c408058ec104df4f92b9d0789ab07f21e8 (diff) | |
download | bcm5719-llvm-283df8cf742803ad0946dbb2b4ff1e9d1eaed7aa.tar.gz bcm5719-llvm-283df8cf742803ad0946dbb2b4ff1e9d1eaed7aa.zip |
Fix build errors caused by rL373914.
llvm-svn: 373919
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r-- | llvm/lib/ProfileData/SampleProfReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/ProfileData/SampleProfReader.cpp b/llvm/lib/ProfileData/SampleProfReader.cpp index 075bd9412b0..6d00404b0bb 100644 --- a/llvm/lib/ProfileData/SampleProfReader.cpp +++ b/llvm/lib/ProfileData/SampleProfReader.cpp @@ -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); |