[sanitizer][fuchsia] Avoid deprecated syscall.
authorJody Sankey <jsankey@google.com>
Thu, 29 Oct 2020 17:51:01 +0000 (10:51 -0700)
committerRoland McGrath <mcgrathr@google.com>
Thu, 29 Oct 2020 17:51:59 +0000 (10:51 -0700)
commit5a3077f3a7b3ca15cffda078a8a706663ba1cb8e
treecf9dd079220b73f8c2053b618c5f52be39c139ee
parentddfe4784cc6e72418a62dca7040ef1629252f986
[sanitizer][fuchsia] Avoid deprecated syscall.

The zx_clock_get syscall on Fuchsia is deprecated - ref
https://fuchsia.dev/fuchsia-src/reference/syscalls/clock_get
This changes to the recommended replacement; calling zx_clock_read on
the userspace UTC clock.

Reviewed By: mcgrathr, phosek

Differential Revision: https://reviews.llvm.org/D90169
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp