[llvm] [flang] [flang] GETPID runtime and lower intrinsic implementation (PR #70442)
David Truby via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 1 08:39:41 PDT 2023
================
@@ -11,6 +11,13 @@
#include "flang/Runtime/entry-names.h"
+#ifdef _WIN32
+// On Windows* OS GetCurrentProcessId returns int (not pid_t)
+typedef int64 pid_t;
----------------
DavidTruby wrote:
Sorry, I just checked and the return type of GetCurrentProcessID is actually `DWORD` so it should be
`typedef DWORD pid_t;`
I think I got this wrong when I suggested the change so sorry about that!
https://github.com/llvm/llvm-project/pull/70442
More information about the llvm-commits
mailing list