diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2015-04-17 11:09:18 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2015-04-17 11:09:18 +0000 |
commit | 62fc15875c8496f6740a08e650cf190b27d559e3 (patch) | |
tree | 52d68cbc49d893fe9a269729a13cfb4ae2dd2b65 /llvm/lib | |
parent | bcc495abc8a9f42a34ac4d97f9f0096c3e301683 (diff) | |
download | bcm5719-llvm-62fc15875c8496f6740a08e650cf190b27d559e3.tar.gz bcm5719-llvm-62fc15875c8496f6740a08e650cf190b27d559e3.zip |
Eliminate superfluous CloseHandle(PI.ProcessHandle).
This handle will always be closed few lines later, resulting in
an error for the second CloseHandle.
llvm-svn: 235177
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Windows/Program.inc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc index c3700774514..32602345f65 100644 --- a/llvm/lib/Support/Windows/Program.inc +++ b/llvm/lib/Support/Windows/Program.inc @@ -423,7 +423,6 @@ ProcessInfo sys::Wait(const ProcessInfo &PI, unsigned SecondsToWait, return WaitResult; } WaitForSingleObject(PI.ProcessHandle, INFINITE); - CloseHandle(PI.ProcessHandle); } else { // Non-blocking wait. return ProcessInfo(); |