[PATCH] D46241: [CodeGen] Recognize more cases of zero initialization
Serge Pavlov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 2 10:04:21 PDT 2018
sepavloff marked 3 inline comments as done.
sepavloff added inline comments.
================
Comment at: lib/CodeGen/CGExprConstant.cpp:1414
+ return true;
+ }
+ }
----------------
rjmccall wrote:
> You should check the array fill expression here; for now, the test case would be something like `StructWithNonTrivialDefaultInit sArr[10] = {};`.
Indeed, this is the missing case. Thank you!
Repository:
rC Clang
https://reviews.llvm.org/D46241
More information about the cfe-commits
mailing list