From 5e5a05e75355dba9c2bcdee7b1f12673ec2a9a04 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 5 Nov 2006 19:53:08 +0000 Subject: [PATCH] Fix a problem in the the last patch that subverts error message printing. llvm-svn: 31466 --- llvm/tools/llvm-ld/llvm-ld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-ld/llvm-ld.cpp b/llvm/tools/llvm-ld/llvm-ld.cpp index a7f15a9c3fcd..60fe746b7a4a 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];