[all-commits] [llvm/llvm-project] d4aac6: Make the check for whether we should memset(0) an ...

Richard Smith via All-commits all-commits at lists.llvm.org
Fri Oct 16 16:48:42 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: d4aac67859640bdb7e8ed3123a00c3f200f89b9c
      https://github.com/llvm/llvm-project/commit/d4aac67859640bdb7e8ed3123a00c3f200f89b9c
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-10-16 (Fri, 16 Oct 2020)

  Changed paths:
    M clang/lib/CodeGen/CGExprAgg.cpp
    M clang/test/CodeGenCXX/cxx11-initializer-aggregate.cpp

  Log Message:
  -----------
  Make the check for whether we should memset(0) an aggregate
initialization a little smarter.

Look through casts that preserve zero-ness when determining if an
initializer is zero, so that we can handle cases like an {0} initializer
whose corresponding field is a type other than 'int'.




More information about the All-commits mailing list