[PATCH] D48671: [sanitizer] zx_cprng_draw no longer returns any value

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 14:30:05 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL335790: [sanitizer] zx_cprng_draw no longer returns any value (authored by phosek, committed by ).
Herald added a subscriber: delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D48671?vs=153175&id=153182#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D48671

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


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
@@ -472,7 +472,7 @@
 
 bool GetRandom(void *buffer, uptr length, bool blocking) {
   CHECK_LE(length, ZX_CPRNG_DRAW_MAX_LEN);
-  CHECK_EQ(_zx_cprng_draw(buffer, length), ZX_OK);
+  _zx_cprng_draw(buffer, length);
   return true;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48671.153182.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/cb72e653/attachment.bin>


More information about the llvm-commits mailing list