summaryrefslogtreecommitdiff
path: root/tools/llvm-ld
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-05 19:53:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-05 19:53:08 +0000
commit7b28955c4c879343a6ba1b335823334f0bb4c16d (patch)
treea1ae21658f3d0eb1695a8f93b9c2c71c8fa45ccd /tools/llvm-ld
parentdaa98106b744eab87b2e6c3cee3bc080b3deb0f5 (diff)
downloadllvm-7b28955c4c879343a6ba1b335823334f0bb4c16d.tar.gz
llvm-7b28955c4c879343a6ba1b335823334f0bb4c16d.tar.bz2
llvm-7b28955c4c879343a6ba1b335823334f0bb4c16d.tar.xz
Fix a problem in the the last patch that subverts error message printing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31466 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-ld')
-rw-r--r--tools/llvm-ld/llvm-ld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-ld/llvm-ld.cpp b/tools/llvm-ld/llvm-ld.cpp
index a7f15a9c3f..60fe746b7a 100644
--- a/tools/llvm-ld/llvm-ld.cpp
+++ b/tools/llvm-ld/llvm-ld.cpp
@@ -499,7 +499,7 @@ int main(int argc, char **argv, char **envp) {
// Get the program arguments
sys::Path tmp_output("opt_result");
std::string ErrMsg;
- if (tmp_output.createTemporaryFileOnDisk(true)) {
+ if (tmp_output.createTemporaryFileOnDisk(true, &ErrMsg)) {
return PrintAndReturn(ErrMsg);
}
const char* args[4];