From 14230f99262df66a5dbd4dc5de5d55807c5c6d05 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Wed, 14 Aug 2019 18:30:18 +0000 Subject: [PATCH] [Support][NFC] Fix error message for posix_spawn_file_actions_addopen failed call Seems like a copy-paste from couple lines above. llvm-svn: 368899 --- llvm/lib/Support/Unix/Program.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Program.inc b/llvm/lib/Support/Unix/Program.inc index 9f641c4f7719..520685a0e987 100644 --- a/llvm/lib/Support/Unix/Program.inc +++ b/llvm/lib/Support/Unix/Program.inc @@ -136,7 +136,7 @@ static bool RedirectIO_PS(const std::string *Path, int FD, std::string *ErrMsg, if (int Err = posix_spawn_file_actions_addopen( FileActions, FD, File, FD == 0 ? O_RDONLY : O_WRONLY | O_CREAT, 0666)) - return MakeErrMsg(ErrMsg, "Cannot dup2", Err); + return MakeErrMsg(ErrMsg, "Cannot posix_spawn_file_actions_addopen", Err); return false; } #endif