[compiler-rt] r326759 - [sanitizer] Fix the return type for GetTid in Fuchsia implementation
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 5 18:01:32 PST 2018
Author: phosek
Date: Mon Mar 5 18:01:32 2018
New Revision: 326759
URL: http://llvm.org/viewvc/llvm-project?rev=326759&view=rev
Log:
[sanitizer] Fix the return type for GetTid in Fuchsia implementation
This is triggering "functions that differ only in their return type
cannot be overloaded" error.
Differential Revision: https://reviews.llvm.org/D44126
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc?rev=326759&r1=326758&r2=326759&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc Mon Mar 5 18:01:32 2018
@@ -66,7 +66,7 @@ uptr internal_getpid() {
uptr GetThreadSelf() { return reinterpret_cast<uptr>(thrd_current()); }
-uptr GetTid() { return GetThreadSelf(); }
+tid_t GetTid() { return GetThreadSelf(); }
void Abort() { abort(); }
More information about the llvm-commits
mailing list