mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
If unable to create tmp. file on disk then return LTO_WRITE_FAILURE status.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a060775da
commit
ca64012ac6
@ -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