If unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.

llvm-svn: 29844
This commit is contained in:
Devang Patel 2006-08-23 16:59:25 +00:00
parent bc4c8e8ac0
commit 16c2934123

View File

@ -298,7 +298,7 @@ LinkTimeOptimizer::optimizeModules(const std::string &OutputFilename,
std::string ErrMsg;
if (tmpAsmFilePath.createTemporaryFileOnDisk(&ErrMsg)) {
std::cerr << "lto: " << ErrMsg << "\n";
return;
return LTO_WRITE_FAILURE;
}
sys::RemoveFileOnSignal(tmpAsmFilePath);