commit | 171a4630db7eff69b57c12e29e1ed1b2ac6f668c | [log] [tgz] |
---|---|---|
author | Eli Friedman <eli.friedman@gmail.com> | Sat Aug 09 23:45:45 2008 +0000 |
committer | Eli Friedman <eli.friedman@gmail.com> | Sat Aug 09 23:45:45 2008 +0000 |
tree | bea8d600cccdc3f132e23321f0e12ca5600b0c8d | |
parent | dd2b9af09dd1ed6107a089dd6e65471e52cb627d [diff] |
Make sure to count the struct elements correctly; here, we want the member count. The count returned by numStructUnionElements is the number of initializers that will be consumed, not the number of members to iterate through. Fixes PR2534. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54601 91177308-0d34-0410-b5e6-96231b3b80d8