[PATCH] D44126: [sanitizer] Fix the return type for GetTid in Fuchsia implementation

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 5 16:27:16 PST 2018


phosek created this revision.
phosek added reviewers: mcgrathr, vitalybuka.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.

This is triggering "functions that differ only in their return type
cannot be overloaded" error.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44126

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc


Index: compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -66,7 +66,7 @@
 
 uptr GetThreadSelf() { return reinterpret_cast<uptr>(thrd_current()); }
 
-uptr GetTid() { return GetThreadSelf(); }
+tid_t GetTid() { return GetThreadSelf(); }
 
 void Abort() { abort(); }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44126.137105.patch
Type: text/x-patch
Size: 458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180306/579cec05/attachment.bin>


More information about the llvm-commits mailing list