summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commit5e5a05e75355dba9c2bcdee7b1f12673ec2a9a04 (patch)
treeafb0ce23aafe52fc04d16c829bd56715455df978 /llvm/tools
parent852ed3dc8923c0b52bbacfa635310658e4814710 (diff)
downloadbcm5719-llvm-5e5a05e75355dba9c2bcdee7b1f12673ec2a9a04.tar.gz
bcm5719-llvm-5e5a05e75355dba9c2bcdee7b1f12673ec2a9a04.zip
Fix a problem in the the last patch that subverts error message printing.
llvm-svn: 31466
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-ld/llvm-ld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp
index a7f15a9c3fc..60fe746b7a4 100644
--- a/llvm/tools/llvm-ld/llvm-ld.cpp
+++ b/llvm/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];
OpenPOWER on IntegriCloud