[llvm] r235177 - Eliminate superfluous CloseHandle(PI.ProcessHandle).
Yaron Keren
yaron.keren at gmail.com
Fri Apr 17 04:09:18 PDT 2015
Author: yrnkrn
Date: Fri Apr 17 06:09:18 2015
New Revision: 235177
URL: http://llvm.org/viewvc/llvm-project?rev=235177&view=rev
Log:
Eliminate superfluous CloseHandle(PI.ProcessHandle).
This handle will always be closed few lines later, resulting in
an error for the second CloseHandle.
Modified:
llvm/trunk/lib/Support/Windows/Program.inc
Modified: llvm/trunk/lib/Support/Windows/Program.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Program.inc?rev=235177&r1=235176&r2=235177&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Program.inc (original)
+++ llvm/trunk/lib/Support/Windows/Program.inc Fri Apr 17 06:09:18 2015
@@ -423,7 +423,6 @@ ProcessInfo sys::Wait(const ProcessInfo
return WaitResult;
}
WaitForSingleObject(PI.ProcessHandle, INFINITE);
- CloseHandle(PI.ProcessHandle);
} else {
// Non-blocking wait.
return ProcessInfo();
More information about the llvm-commits
mailing list