diff options
author | Devang Patel <dpatel@apple.com> | 2006-08-23 16:59:25 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-08-23 16:59:25 +0000 |
commit | ca64012ac6b21d868ccf2fcc26febd991ef2cc9c (patch) | |
tree | db536aad9cb7298d7613da67b70ff7b16c98423c /tools/lto | |
parent | 5a060775da43ec2ef37e839e93a0805d543708a9 (diff) | |
download | external_llvm-ca64012ac6b21d868ccf2fcc26febd991ef2cc9c.zip external_llvm-ca64012ac6b21d868ccf2fcc26febd991ef2cc9c.tar.gz external_llvm-ca64012ac6b21d868ccf2fcc26febd991ef2cc9c.tar.bz2 |
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
Diffstat (limited to 'tools/lto')
-rw-r--r-- | tools/lto/lto.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lto/lto.cpp b/tools/lto/lto.cpp index 372e6ea..a737953 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -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); |