clang fix to parallel LLVM r51928

(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080602/063306.html).

llvm-svn: 51944
This commit is contained in:
Eli Friedman 2008-06-04 16:13:19 +00:00
parent b147ad1051
commit c0b54901f4
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ void RecordOrganizer::layoutStructFields(const ASTRecordLayout &RL) {
const FieldDecl *FD = RD.getMember(curField);
uint64_t offset = RL.getFieldOffset(curField);
const llvm::Type *Ty = CGT.ConvertTypeRecursive(FD->getType());
uint64_t size = CGT.getTargetData().getTypeStoreSizeInBits(Ty);
uint64_t size = CGT.getTargetData().getABITypeSizeInBits(Ty);
if (FD->isBitField()) {
Expr *BitWidth = FD->getBitWidth();