aboutsummaryrefslogtreecommitdiff
path: root/unittests/Support
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
commita0bd5df0867e054b9740bc734325cdeabfe3825a (patch)
treecd3f5a4b35a67740aaef272f5f02213c7235d350 /unittests/Support
parentee03c949b85036b68c261dcc27dca064ee7e525d (diff)
Add more guards around zlib-dependent code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180084 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Support')
-rw-r--r--unittests/Support/CompressionTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Support/CompressionTest.cpp b/unittests/Support/CompressionTest.cpp
index aad7ed0e89..c8e2cd9f02 100644
--- a/unittests/Support/CompressionTest.cpp
+++ b/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;