diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-21 17:59:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-21 17:59:23 +0000 |
commit | b534f6a601307af213164c4fdd27e4b6a926ec83 (patch) | |
tree | e47c18266a6aa2f227080be05286a9e85ac99d23 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 30fb341f4f7e653cdeca51ce5616a6811ee2a3e7 (diff) | |
download | bcm5719-llvm-b534f6a601307af213164c4fdd27e4b6a926ec83.tar.gz bcm5719-llvm-b534f6a601307af213164c4fdd27e4b6a926ec83.zip |
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.
llvm-svn: 69687
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions