Fixed "check -assert"

This commit is contained in:
Clifford Wolf 2015-02-22 16:29:44 +01:00
parent 4b89dd983c
commit c4f383e452
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ struct CheckPass : public Pass {
log("found and reported %d problems.\n", counter);
if (assert_mode)
if (assert_mode && counter > 0)
log_error("Found %d problems in 'check -assert'.\n", counter);
}
} CheckPass;