| commit | 224ae88bc3f3c0ad43a50da048a2f789898a18cf | [log] [tgz] |
|---|---|---|
| author | Lang Hames <lhames@gmail.com> | Tue Mar 05 20:27:24 2013 +0000 |
| committer | Lang Hames <lhames@gmail.com> | Tue Mar 05 20:27:24 2013 +0000 |
| tree | 4ad34a59cae2828e593260e17c5d2fb4f3b01fb2 | |
| parent | 37f2ab4824ec3309ee3b578efc2839cdf4ce2a24 [diff] |
Use ASTContext::getDeclAlign(<Field Decl>) to get the alignment of the first field to be memcpy'd, rather instead of ASTContext::getTypeAlign(<Field Type>). For packed structs the alignment of a field may be less than the alignment of the field's type. <rdar://problem/13338585> llvm-svn: 176512