[all-commits] [llvm/llvm-project] 612f23: [scudo][standalone] Work with -Werror=class-memaccess

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Sat Apr 11 07:29:47 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 612f23857f36669a12ccdc1a6e93781080907203
      https://github.com/llvm/llvm-project/commit/612f23857f36669a12ccdc1a6e93781080907203
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2020-04-11 (Sat, 11 Apr 2020)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/mutex.h
    M compiler-rt/lib/scudo/standalone/quarantine.h
    M compiler-rt/lib/scudo/standalone/stats.h

  Log Message:
  -----------
  [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




More information about the All-commits mailing list