diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-04 16:13:19 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-04 16:13:19 +0000 |
commit | b853ca876e92ea6e171bd7bb5d161fcbc9e9b032 (patch) | |
tree | 2fbb6353760c2a2c89f4e62da8e5b7d4d5b36a1d /lib/CodeGen/CodeGenTypes.cpp | |
parent | e7d07d113677a39026ff5119b8b67f6fe8ca9793 (diff) |
clang fix to parallel LLVM r51928
(http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080602/063306.html).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index 1e795acd51..bab5a21a6a 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -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(); |