[llvm] r200259 - Fix the "#ifndef HAVE_SYS_WAIT_H" code path in Program.inc to compile
Mark Seaborn
mseaborn at chromium.org
Mon Jan 27 14:53:07 PST 2014
Author: mseaborn
Date: Mon Jan 27 16:53:07 2014
New Revision: 200259
URL: http://llvm.org/viewvc/llvm-project?rev=200259&view=rev
Log:
Fix the "#ifndef HAVE_SYS_WAIT_H" code path in Program.inc to compile
Without this fix, WaitResult is not defined.
Modified:
llvm/trunk/lib/Support/Unix/Program.inc
Modified: llvm/trunk/lib/Support/Unix/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Program.inc?rev=200259&r1=200258&r2=200259&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Program.inc (original)
+++ llvm/trunk/lib/Support/Unix/Program.inc Mon Jan 27 16:53:07 2014
@@ -418,6 +418,7 @@ ProcessInfo sys::Wait(const ProcessInfo
#else
if (ErrMsg)
*ErrMsg = "Program::Wait is not implemented on this platform yet!";
+ ProcessInfo WaitResult;
WaitResult.ReturnCode = -2;
#endif
return WaitResult;
More information about the llvm-commits
mailing list