[PATCH] D50937: [Sanitizer] implementing remaining function under OSX

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 18 11:41:35 PDT 2018


cryptoad added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_mac.cc:1064
 
 // FIXME: implement on this platform.
 bool GetRandom(void *buffer, uptr length, bool blocking) {
----------------
Remove the FIXME.


================
Comment at: lib/sanitizer_common/sanitizer_mac.cc:1087
 // FIXME: implement on this platform.
 u32 GetNumberOfCPUs() {
+  return (u32)sysconf(_SC_NPROCESSORS_ONLN);
----------------
Here too.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D50937





More information about the llvm-commits mailing list