[PATCH] D43998: Sanitiser common, using u64 type for GetTid on posix systems

Kamil Rytarowski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 00:31:35 PST 2018


krytarowski added a comment.

Please improve (add) the description.

Note bugfix for FreeBSD.



================
Comment at: lib/sanitizer_common/sanitizer_linux.cc:459
+  thr_self(&Tid);
+  return (u64)Tid;
 #elif SANITIZER_NETBSD
----------------
Do we need to cast (u64)? Integer promotion is implicit in C / C++. I would drop it.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D43998





More information about the llvm-commits mailing list