summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorKen Dyck <kd@kendyck.com>2011-02-09 01:59:34 +0000
committerKen Dyck <kd@kendyck.com>2011-02-09 01:59:34 +0000
commitc8ae55050dcf5becdb8a80b065ecabdd6ae59744 (patch)
tree3d5fbba9084d1cd9f495b922bad5b00f86daaadf /clang/lib/AST/ASTContext.cpp
parenta40f8ebc83735aa7f930d0772817725e958bfbd6 (diff)
downloadbcm5719-llvm-c8ae55050dcf5becdb8a80b065ecabdd6ae59744.tar.gz
bcm5719-llvm-c8ae55050dcf5becdb8a80b065ecabdd6ae59744.zip
Convert RecordLayout::Size to CharUnits from bits. No changes to
functionality intended. llvm-svn: 125156
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 63e84d41313..30fe791e6d3 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud