diff options
author | Richard Smith <richard@metafoo.co.uk> | 2020-10-16 16:46:49 -0700 |
---|---|---|
committer | Richard Smith <richard@metafoo.co.uk> | 2020-10-16 16:48:22 -0700 |
commit | d4aac67859640bdb7e8ed3123a00c3f200f89b9c (patch) | |
tree | b682e1ad0a4ed7df30bbbadaf625a202b256f6a5 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 5adb3a6d86eecade2cb94b1a04d35e673d4e5866 (diff) | |
download | llvm-d4aac67859640bdb7e8ed3123a00c3f200f89b9c.zip llvm-d4aac67859640bdb7e8ed3123a00c3f200f89b9c.tar.gz llvm-d4aac67859640bdb7e8ed3123a00c3f200f89b9c.tar.bz2 |
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'.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions