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 | d5090c16f8b2b3c12bb54ac235af32945357b502 (patch) | |
tree | f71eb9d140453d09f4b7e8466ecfb668f6e22cf4 /clang/lib/CodeGen/CGObjCMac.cpp | |
parent | c7af6fe3bd57ff3b69e68dc03183cb8976845904 (diff) | |
download | bcm5719-llvm-d5090c16f8b2b3c12bb54ac235af32945357b502.tar.gz bcm5719-llvm-d5090c16f8b2b3c12bb54ac235af32945357b502.zip |
Convert RecordLayout::DataSize to CharUnits from bits, eliminating two
unnecessary calls to RoundUpToAlignment. No changes to functionality
intended.
llvm-svn: 125356
Diffstat (limited to 'clang/lib/CodeGen/CGObjCMac.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGObjCMac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjCMac.cpp b/clang/lib/CodeGen/CGObjCMac.cpp index 83672f8b10f..7c679b90590 100644 --- a/clang/lib/CodeGen/CGObjCMac.cpp +++ b/clang/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()) |