[PATCH] D63895: [sanitizer_common] Switch from zx_clock_get_new to zx_clock_get

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 27 13:47:44 PDT 2019


phosek created this revision.
phosek added reviewers: mcgrathr, jakehehrlich, leonardchan.
Herald added subscribers: llvm-commits, Sanitizers, kubamracek.
Herald added projects: LLVM, Sanitizers.

This is part of the soft-transition to the new system call name.
These two system calls are the same so this change is no-op.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D63895

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
@@ -48,7 +48,7 @@
 
 u64 NanoTime() {
   zx_time_t time;
-  zx_status_t status = _zx_clock_get_new(ZX_CLOCK_UTC, &time);
+  zx_status_t status = _zx_clock_get(ZX_CLOCK_UTC, &time);
   CHECK_EQ(status, ZX_OK);
   return time;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63895.206926.patch
Type: text/x-patch
Size: 473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190627/0548aefb/attachment.bin>


More information about the llvm-commits mailing list