summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2015-08-11 05:57:10 +0000
committerNick Lewycky <nicholas@mxc.ca>2015-08-11 05:57:10 +0000
commit69ab31a3fa2a6cf1f45c5855599108aaa04e2f3a (patch)
treea82233850c8ffe644d324036d2a413b8b380885c
parent11bf0da0d78c33cbf70dfcd52674704e5484259e (diff)
downloadbcm5719-llvm-69ab31a3fa2a6cf1f45c5855599108aaa04e2f3a.tar.gz
bcm5719-llvm-69ab31a3fa2a6cf1f45c5855599108aaa04e2f3a.zip
Fix unused variable 'X' in release builds.
llvm-svn: 244571
-rw-r--r--llvm/lib/Fuzzer/FuzzerLoop.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp
index 3f7fcb5ea9b..2955f5bcb60 100644
--- a/llvm/lib/Fuzzer/FuzzerLoop.cpp
+++ b/llvm/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) {
OpenPOWER on IntegriCloud