diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-07-18 05:27:33 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-07-18 05:27:33 +0000 |
commit | cbb7ec7396914560e107ff32d4a820774c4392dd (patch) | |
tree | 4b5a41e88e93ff08d483ce5b211d674ce8fdc9de /tools/lto | |
parent | ad8c531e202adfc812aeabaaf87616ba27f02339 (diff) | |
download | external_llvm-cbb7ec7396914560e107ff32d4a820774c4392dd.zip external_llvm-cbb7ec7396914560e107ff32d4a820774c4392dd.tar.gz external_llvm-cbb7ec7396914560e107ff32d4a820774c4392dd.tar.bz2 |
Fix a sys::Path API error caught by a gcc 4.2 warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39995 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 dacea66..cef26f1 100644 --- a/tools/lto/lto.cpp +++ b/tools/lto/lto.cpp @@ -403,7 +403,7 @@ LTO::optimizeModules(const std::string &OutputFilename, TempDir.eraseFromDisk(true); return LTO_WRITE_FAILURE; } - if (tmpAsmFilePath.createTemporaryFileOnDisk(&ErrMsg)) { + if (tmpAsmFilePath.createTemporaryFileOnDisk(true, &ErrMsg)) { cerr << "lto: " << ErrMsg << "\n"; TempDir.eraseFromDisk(true); return LTO_WRITE_FAILURE; |