diff options
author | Ken Dyck <kd@kendyck.com> | 2011-02-09 01:59:34 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-02-09 01:59:34 +0000 |
commit | 5f022d82696c84e4d127c558871d68ac6273274e (patch) | |
tree | 1116084da52ffdcc50f243868be92d98053494c1 /lib/AST/ASTContext.cpp | |
parent | d767d81290288c030f3be0be1d3e62b9c8df51dc (diff) |
Convert RecordLayout::Size to CharUnits from bits. No changes to
functionality intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125156 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 63e84d4131..30fe791e6d 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -846,7 +846,7 @@ ASTContext::getTypeInfo(const Type *T) const { case Type::ObjCInterface: { const ObjCInterfaceType *ObjCI = cast<ObjCInterfaceType>(T); const ASTRecordLayout &Layout = getASTObjCInterfaceLayout(ObjCI->getDecl()); - Width = Layout.getSize(); + Width = Layout.getSize().getQuantity() * getCharWidth(); Align = Layout.getAlignment(); break; } @@ -865,7 +865,7 @@ ASTContext::getTypeInfo(const Type *T) const { const RecordType *RT = cast<RecordType>(TT); const ASTRecordLayout &Layout = getASTRecordLayout(RT->getDecl()); - Width = Layout.getSize(); + Width = Layout.getSize().getQuantity() * getCharWidth(); Align = Layout.getAlignment(); break; } |