summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
committerAaron Ballman <aaron@aaronballman.com>2013-06-08 20:29:03 +0000
commit0c793018079803628b5aeee6bbc1e6464fbefd65 (patch)
tree743379e32168eaf3e32b72cc28f4a8f625da7a77 /lib
parent1799921672835c49f6a29fc27d1840b7c36beabd (diff)
downloadllvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.gz
llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.bz2
llvm-0c793018079803628b5aeee6bbc1e6464fbefd65.tar.xz
sys::process::get_id() now returns the process ID instead of a process handle on Windows. Patch thanks to Kim Gräsman!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183621 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/Windows/Process.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Windows/Process.inc b/lib/Support/Windows/Process.inc
index ad9412852f..359b99f513 100644
--- a/lib/Support/Windows/Process.inc
+++ b/lib/Support/Windows/Process.inc
@@ -40,7 +40,7 @@ using namespace sys;
process::id_type self_process::get_id() {
- return GetCurrentProcess();
+ return GetCurrentProcessId();
}
static TimeValue getTimeValueFromFILETIME(FILETIME Time) {