mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-02 16:36:40 +00:00
If unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.
llvm-svn: 29844
This commit is contained in:
parent
bc4c8e8ac0
commit
16c2934123
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user