[compiler-rt] r335790 - [sanitizer] zx_cprng_draw no longer returns any value
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 27 14:25:21 PDT 2018
Author: phosek
Date: Wed Jun 27 14:25:21 2018
New Revision: 335790
URL: http://llvm.org/viewvc/llvm-project?rev=335790&view=rev
Log:
[sanitizer] zx_cprng_draw no longer returns any value
Remove the return value check.
Differential Revision: https://reviews.llvm.org/D48671
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc?rev=335790&r1=335789&r2=335790&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_fuchsia.cc Wed Jun 27 14:25:21 2018
@@ -472,7 +472,7 @@ uptr MainThreadStackBase, MainThreadStac
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;
}
More information about the llvm-commits
mailing list