- add check before truncating (un)compressed data buffer if the buffer is already a perfect length, to avoid triggering truncate assertion in edge case.
- explictly coerce LLVM_ENABLE_ZLIB to a 0 or 1 value in OFF case, to match current ON, FORCE_ON behavior.
- fix code style nits in zlib tests
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
@MaskRay in this revision I handle the nits that you had noted about my zstd testing in https://reviews.llvm.org/D128465, that also apply for the existing zlib code.
Comment Actions
LGTM
llvm/unittests/Support/CompressionTest.cpp | ||
---|---|---|
26 | I'd probably omit changes to this file since they're not really necessary (and not even described in your commit message). |
I'd probably omit changes to this file since they're not really necessary (and not even described in your commit message).