Fix generation of obj-c @encoding for members with zero size.
commit0c6f8260f7428b81f14f65a0d75cb44bc1d3cd3f
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 15 May 2011 00:11:35 +0000 (15 00:11 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Sun, 15 May 2011 00:11:35 +0000 (15 00:11 +0000)
tree3dee68bfb342ab34c6379d160176e6e59c70c2f7
parentffb945ffb5d29b80fd93649c3572b6d87abce3fc
Fix generation of obj-c @encoding for members with zero size.
Also follow gcc in that arrays of elements with zero size are encoded as arrays with zero elements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131369 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/CodeGenObjC/encode-test.m