From eacc53d67e1181d7d4c95aaaa33f8f331ff1d9af Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Tue, 11 Aug 2015 05:57:10 +0000 Subject: [PATCH] Fix unused variable 'X' in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244571 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Fuzzer/FuzzerLoop.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Fuzzer/FuzzerLoop.cpp b/lib/Fuzzer/FuzzerLoop.cpp index 3f7fcb5ea9b..2955f5bcb60 100644 --- a/lib/Fuzzer/FuzzerLoop.cpp +++ b/lib/Fuzzer/FuzzerLoop.cpp @@ -253,9 +253,11 @@ void Fuzzer::WriteToOutputCorpus(const Unit &U) { WriteToFile(U, Path); if (Options.Verbosity >= 2) Printf("Written to %s\n", Path.c_str()); +#ifdef DEBUG if (Options.OnlyASCII) for (auto X : U) assert(isprint(X) || isspace(X)); +#endif } void Fuzzer::WriteUnitToFileWithPrefix(const Unit &U, const char *Prefix) { -- 2.34.1