Make sure that non-zero exit code is returned when input file not found.
Fixes issue #174.
This commit is contained in:
@@ -1625,6 +1625,9 @@ Module::CompileAndOutput(const char *srcFile, const char *arch, const char *cpu,
|
|||||||
if (!m->writeOutput(Module::Header, headerFileName))
|
if (!m->writeOutput(Module::Header, headerFileName))
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
++m->errorCount;
|
||||||
|
|
||||||
int errorCount = m->errorCount;
|
int errorCount = m->errorCount;
|
||||||
delete m;
|
delete m;
|
||||||
m = NULL;
|
m = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user