diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-06 16:45:46 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-11-06 16:45:46 +0000 |
commit | bf025fdb54a7676eca144a55a44397fca12f6032 (patch) | |
tree | cb55b0063053d541d87c5e2d502ab4ca28085561 /llvm/lib/Support/Windows | |
parent | 0ad080e720c4e4debcd059fddfbd1d948c7214c0 (diff) | |
download | bcm5719-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/Windows')
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 2 |
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 |