Fix a problem in the the last patch that subverts error message printing.

llvm-svn: 31466
This commit is contained in:
Reid Spencer 2006-11-05 19:53:08 +00:00
parent 852ed3dc89
commit 5e5a05e753
1 changed files with 1 additions and 1 deletions

View File

@ -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];