Make sure that non-zero exit code is returned when input file not found.

Fixes issue #174.
This commit is contained in:
Matt Pharr
2012-02-08 19:52:49 -08:00
parent ea18427d29
commit ffba8580c1

View File

@@ -1625,6 +1625,9 @@ Module::CompileAndOutput(const char *srcFile, const char *arch, const char *cpu,
if (!m->writeOutput(Module::Header, headerFileName))
return 1;
}
else
++m->errorCount;
int errorCount = m->errorCount;
delete m;
m = NULL;