diff options
author | Ken Dyck <kd@kendyck.com> | 2011-02-11 02:20:09 +0000 |
---|---|---|
committer | Ken Dyck <kd@kendyck.com> | 2011-02-11 02:20:09 +0000 |
commit | ec2990351335f163601b98e39b52425e2e9f931e (patch) | |
tree | ab8af83594607cd11197c6dd6f52f36f8380fd45 /lib/CodeGen/CGObjCMac.cpp | |
parent | dd76a9ab9ea675671200f94b18ce95766841952b (diff) |
Convert RecordLayout::DataSize to CharUnits from bits, eliminating two
unnecessary calls to RoundUpToAlignment. No changes to functionality
intended.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125356 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCMac.cpp b/lib/CodeGen/CGObjCMac.cpp index 83672f8b10..7c679b9059 100644 --- a/lib/CodeGen/CGObjCMac.cpp +++ b/lib/CodeGen/CGObjCMac.cpp @@ -4950,7 +4950,7 @@ void CGObjCNonFragileABIMac::GetClassSizeInfo(const ObjCImplementationDecl *OID, CGM.getContext().getASTObjCImplementationLayout(OID); // InstanceSize is really instance end. - InstanceSize = llvm::RoundUpToAlignment(RL.getDataSize(), 8) / 8; + InstanceSize = RL.getDataSize().getQuantity(); // If there are no fields, the start is the same as the end. if (!RL.getFieldCount()) |