Skip to content

Commit

Permalink
Fix unused variable 'X' in release builds.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244571 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nlewycky committed Aug 11, 2015
1 parent 624a11d commit eacc53d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Fuzzer/FuzzerLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit eacc53d

Please sign in to comment.