[llvm] r331151 - Remove a dead #ifdef.
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 29 17:08:07 PDT 2018
Author: nico
Date: Sun Apr 29 17:08:06 2018
New Revision: 331151
URL: http://llvm.org/viewvc/llvm-project?rev=331151&view=rev
Log:
Remove a dead #ifdef.
Unix/Threading.inc should never be included on _WIN32. See also
https://reviews.llvm.org/D30526#1082292
Modified:
llvm/trunk/lib/Support/Unix/Threading.inc
Modified: llvm/trunk/lib/Support/Unix/Threading.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Threading.inc?rev=331151&r1=331150&r2=331151&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Threading.inc (original)
+++ llvm/trunk/lib/Support/Unix/Threading.inc Sun Apr 29 17:08:06 2018
@@ -98,8 +98,6 @@ uint64_t llvm::get_threadid() {
return uint64_t(gettid());
#elif defined(__linux__)
return uint64_t(syscall(SYS_gettid));
-#elif defined(_WIN32)
- return uint64_t(::GetCurrentThreadId());
#else
return uint64_t(pthread_self());
#endif
More information about the llvm-commits
mailing list