forked from OSchip/llvm-project
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:
parent
b147ad1051
commit
c0b54901f4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue