aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Windows/Program.inc
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2011-12-12 06:03:33 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2011-12-12 06:03:33 +0000
commit1dd2ee7bf4d848e368829cb01033f297afb674ab (patch)
tree0458e46c4fee4ade88a676613bf80b4b76ed20f1 /lib/Support/Windows/Program.inc
parent48b0bbf930f9efa72f46f70b7e81dec69c2397cc (diff)
downloadexternal_llvm-1dd2ee7bf4d848e368829cb01033f297afb674ab.zip
external_llvm-1dd2ee7bf4d848e368829cb01033f297afb674ab.tar.gz
external_llvm-1dd2ee7bf4d848e368829cb01033f297afb674ab.tar.bz2
Support/Windows: Cleanup scoped handles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146362 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Windows/Program.inc')
-rw-r--r--lib/Support/Windows/Program.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Support/Windows/Program.inc b/lib/Support/Windows/Program.inc
index 80cb7cc..b328b3c 100644
--- a/lib/Support/Windows/Program.inc
+++ b/lib/Support/Windows/Program.inc
@@ -299,14 +299,14 @@ Program::Execute(const Path& path,
Data_ = wpi;
// Make sure these get closed no matter what.
- AutoHandle hThread(pi.hThread);
+ ScopedCommonHandle hThread(pi.hThread);
// Assign the process to a job if a memory limit is defined.
- AutoHandle hJob(0);
+ ScopedJobHandle hJob;
if (memoryLimit != 0) {
hJob = CreateJobObject(0, 0);
bool success = false;
- if (hJob != 0) {
+ if (hJob) {
JOBOBJECT_EXTENDED_LIMIT_INFORMATION jeli;
memset(&jeli, 0, sizeof(jeli));
jeli.BasicLimitInformation.LimitFlags = JOB_OBJECT_LIMIT_PROCESS_MEMORY;