[scudo][standalone] Work with -Werror=class-memaccess
authorKostya Kortchinsky <kostyak@google.com>
Fri, 10 Apr 2020 20:41:12 +0000 (13:41 -0700)
committerKostya Kortchinsky <kostyak@google.com>
Sat, 11 Apr 2020 14:29:12 +0000 (07:29 -0700)
commit612f23857f36669a12ccdc1a6e93781080907203
tree647e5b3ef34822f6a7926ceb2bec0ee5b69cf3c2
parentcbcb12fd44dfdb51bbf4489d213d96f17be3091f
[scudo][standalone] Work with -Werror=class-memaccess

Summary:
Fuchsia's gcc uses this, which in turn prevents us to compile successfully
due to a few `memset`'ing some non-trivial classes in some `init`.

Change those `memset` to members initialization.

Reviewers: pcc, hctim

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D77902
compiler-rt/lib/scudo/standalone/mutex.h
compiler-rt/lib/scudo/standalone/quarantine.h
compiler-rt/lib/scudo/standalone/stats.h