]> granicus.if.org Git - llvm/commitdiff
[Support][NFC] Fix error message for posix_spawn_file_actions_addopen failed call
authorJan Korous <jkorous@apple.com>
Wed, 14 Aug 2019 18:30:18 +0000 (18:30 +0000)
committerJan Korous <jkorous@apple.com>
Wed, 14 Aug 2019 18:30:18 +0000 (18:30 +0000)
Seems like a copy-paste from couple lines above.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368899 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Unix/Program.inc

index 9f641c4f771987a1d76dbdf610a5f0fa63faa54d..520685a0e9878e07880d158fbe1c84a57863ae7c 100644 (file)
@@ -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