aboutsummaryrefslogtreecommitdiff
path: root/llvm/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
commit513f1b666f3b36bdcb5c3eed5061a19678f53e53 (patch)
tree7cecd9b71b1ecde2657e5291005bc7da9b3f5502 /llvm/lib/Support/Windows/Program.inc
parentf6bb278ee8aef41f32d644638ed6d4b40121290f (diff)
downloadllvm-513f1b666f3b36bdcb5c3eed5061a19678f53e53.zip
llvm-513f1b666f3b36bdcb5c3eed5061a19678f53e53.tar.gz
llvm-513f1b666f3b36bdcb5c3eed5061a19678f53e53.tar.bz2
Support/Windows: Cleanup scoped handles.
llvm-svn: 146362
Diffstat (limited to 'llvm/lib/Support/Windows/Program.inc')
-rw-r--r--llvm/lib/Support/Windows/Program.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Support/Windows/Program.inc b/llvm/lib/Support/Windows/Program.inc
index 80cb7cc..b328b3c 100644
--- a/llvm/lib/Support/Windows/Program.inc
+++ b/llvm/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;