Fixed ISPC debug info generator, added debug tests

This commit is contained in:
Andrey Guskov
2015-03-27 14:52:18 +03:00
parent ef826603a7
commit dd567654e7
3 changed files with 37 additions and 37 deletions

View File

@@ -1100,6 +1100,12 @@ Module::writeOutput(OutputType outputType, const char *outFileName,
}
#endif
// SIC! (verifyModule() == TRUE) means "failed", see llvm-link code.
if ((outputType != Header) && (outputType != Deps)
&& (outputType != HostStub) && (outputType != DevStub)
&& module && llvm::verifyModule(*module))
FATAL("Resulting module verification failed!");
// First, issue a warning if the output file suffix and the type of
// file being created seem to mismatch. This can help catch missing
// command-line arguments specifying the output file type.