diff options
author | Cole Kissane <cole.kissane@gmail.com> | 2022-07-13 15:08:40 -0700 |
---|---|---|
committer | Cole Kissane <cole.kissane@gmail.com> | 2022-07-13 15:08:41 -0700 |
commit | 6b618a620f0b964f78c176a9dc94bcc35bf0db68 (patch) | |
tree | 82cae74deacc18e7d854030457958e21213c3c72 /clang/lib/ExtractAPI/Serialization | |
parent | d843d5c8e6c9e16a8ff18cae3ff0aea3c4bace49 (diff) | |
download | llvm-6b618a620f0b964f78c176a9dc94bcc35bf0db68.zip llvm-6b618a620f0b964f78c176a9dc94bcc35bf0db68.tar.gz llvm-6b618a620f0b964f78c176a9dc94bcc35bf0db68.tar.bz2 |
[llvm] fix zlib buffer truncate edge cases and fix nits in tests
- 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
Reviewed By: phosek
Differential Revision: https://reviews.llvm.org/D129698
Diffstat (limited to 'clang/lib/ExtractAPI/Serialization')
0 files changed, 0 insertions, 0 deletions