[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:13:53 PDT 2018
phosek created this revision.
phosek added reviewers: mcgrathr, aarongreen, jakehehrlich, juliehockett.
Herald added subscribers: Sanitizers, llvm-commits, kubamracek.
Remove the return value check.
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D48671
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
@@ -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.153175.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/087b9453/attachment.bin>
More information about the llvm-commits
mailing list