Fix unused variable 'X' in release builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244571 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Nick Lewycky 2015-08-11 05:57:10 +00:00
parent 624a11dc4f
commit eacc53d67e

View File

@ -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) {