commit | 88207c9ca218486b93ae7df14e9764cd0c2c3383 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Apr 21 17:59:23 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Apr 21 17:59:23 2009 +0000 |
tree | 72013a1716f64b78667877c2fd69067b52b85b5b | |
parent | 4abbea67fdf0fb1b7b09ee2dfa4359aa29c12517 [diff] |
don't bother emitting a zero byte memset at all. We used to get them in cases like this: typedef struct { short instance; char name[0]; } ATTR_LIST_ENTRY2; void test() { ATTR_LIST_ENTRY2 X = (ATTR_LIST_ENTRY2) { .instance = 7, }; } While it is safe to emit them, it is pretty silly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69687 91177308-0d34-0410-b5e6-96231b3b80d8