summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-08-03 05:02:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-08-03 05:02:46 +0000
commit1a6a39eb4647dc6d8d8ceaa483b71a199dc1f9e6 (patch)
treedd03ad6b64476e54f7190238700ccd4b9ab3f586 /llvm/lib/System/Unix
parent07360b2099eb3d830006c3b0f85d933dfdba2eeb (diff)
downloadbcm5719-llvm-1a6a39eb4647dc6d8d8ceaa483b71a199dc1f9e6.tar.gz
bcm5719-llvm-1a6a39eb4647dc6d8d8ceaa483b71a199dc1f9e6.zip
Fix a race condition in getting the process exit code on Win32.
llvm-svn: 77953
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Program.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index 3c5a54cffc1..3a562e45d41 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -35,6 +35,10 @@
namespace llvm {
using namespace sys;
+Program::Program() : Pid_(0) {}
+
+Program::~Program() {}
+
// This function just uses the PATH environment variable to find the program.
Path
Program::FindProgramByName(const std::string& progName) {
OpenPOWER on IntegriCloud