aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/CompressionTest.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-04-23 08:57:30 +0000
committerAlexey Samsonov <samsonov@google.com>2013-04-23 08:57:30 +0000
commit28acf056e1e94a70b60b9392a88dc967eaf28e07 (patch)
treef51900a76ab9813363cf1757b7cdcc7dc7cc3c11 /llvm/unittests/Support/CompressionTest.cpp
parent2fb337e77a9a766cac4d49147592bf9715ff913b (diff)
downloadllvm-28acf056e1e94a70b60b9392a88dc967eaf28e07.zip
llvm-28acf056e1e94a70b60b9392a88dc967eaf28e07.tar.gz
llvm-28acf056e1e94a70b60b9392a88dc967eaf28e07.tar.bz2
Add more guards around zlib-dependent code
llvm-svn: 180084
Diffstat (limited to 'llvm/unittests/Support/CompressionTest.cpp')
-rw-r--r--llvm/unittests/Support/CompressionTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/CompressionTest.cpp b/llvm/unittests/Support/CompressionTest.cpp
index aad7ed0..c8e2cd9 100644
--- a/llvm/unittests/Support/CompressionTest.cpp
+++ b/llvm/unittests/Support/CompressionTest.cpp
@@ -22,7 +22,7 @@ using namespace llvm;
namespace {
-#if LLVM_ENABLE_ZLIB == 1
+#if LLVM_ENABLE_ZLIB == 1 && HAVE_LIBZ
void TestZlibCompression(StringRef Input, zlib::CompressionLevel Level) {
OwningPtr<MemoryBuffer> Compressed;