summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-21 17:59:23 +0000
committerChris Lattner <sabre@nondot.org>2009-04-21 17:59:23 +0000
commitb534f6a601307af213164c4fdd27e4b6a926ec83 (patch)
treee47c18266a6aa2f227080be05286a9e85ac99d23 /clang/lib/CodeGen/CodeGenModule.cpp
parent30fb341f4f7e653cdeca51ce5616a6811ee2a3e7 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud