summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2011-11-06 16:45:46 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2011-11-06 16:45:46 +0000
commitbf025fdb54a7676eca144a55a44397fca12f6032 (patch)
treecb55b0063053d541d87c5e2d502ab4ca28085561 /llvm/lib/Support
parent0ad080e720c4e4debcd059fddfbd1d948c7214c0 (diff)
downloadbcm5719-llvm-bf025fdb54a7676eca144a55a44397fca12f6032.tar.gz
bcm5719-llvm-bf025fdb54a7676eca144a55a44397fca12f6032.zip
Return only the least significant 8 bits of the exit status from
Process::Wait on Windows (mimicing POSIX behaviour). llvm-svn: 143876
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Windows/Program.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc
index e486e6ec238..7e381684567 100644
--- a/llvm/lib/Support/Windows/Program.inc
+++ b/llvm/lib/Support/Windows/Program.inc
@@ -367,7 +367,7 @@ Program::Wait(const Path &path,
return -2;
}
- return status;
+ return status & 0377;
}
bool
OpenPOWER on IntegriCloud