aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Compression.cpp
diff options
context:
space:
mode:
authorPetr Hosek <phosek@google.com>2020-07-23 15:12:42 -0700
committerPetr Hosek <phosek@google.com>2020-07-23 15:12:42 -0700
commit38c71b7c85cac4c8de39329ff3ed682e63f61525 (patch)
treed808068f727537568ca5a35a82562b721083e111 /llvm/lib/Support/Compression.cpp
parentb83417aa7e26ca76c433ec5befdecd5c571408a6 (diff)
downloadllvm-38c71b7c85cac4c8de39329ff3ed682e63f61525.zip
llvm-38c71b7c85cac4c8de39329ff3ed682e63f61525.tar.gz
llvm-38c71b7c85cac4c8de39329ff3ed682e63f61525.tar.bz2
Revert "[CMake] Simplify CMake handling for zlib"
This reverts commit 1d09ecf36175f7910ffedd6d497c07b5c74c22fb since it breaks sanitizer bots.
Diffstat (limited to 'llvm/lib/Support/Compression.cpp')
-rw-r--r--llvm/lib/Support/Compression.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Compression.cpp b/llvm/lib/Support/Compression.cpp
index b8c77cf..27d92f0 100644
--- a/llvm/lib/Support/Compression.cpp
+++ b/llvm/lib/Support/Compression.cpp
@@ -17,13 +17,13 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/Error.h"
#include "llvm/Support/ErrorHandling.h"
-#if LLVM_ENABLE_ZLIB
+#if LLVM_ENABLE_ZLIB == 1 && HAVE_ZLIB_H
#include <zlib.h>
#endif
using namespace llvm;
-#if LLVM_ENABLE_ZLIB
+#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ
static Error createError(StringRef Err) {
return make_error<StringError>(Err, inconvertibleErrorCode());
}