diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-01-12 21:08:18 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-01-12 21:08:18 +0000 |
commit | 491c7b77cd8ec8570f646d43b937a5aec688bcbf (patch) | |
tree | 5ad04dc2067b2c3bdabf1be36ce0c8ce18f08d78 /lib/CodeGen/CGObjCGNU.cpp | |
parent | d1fa6449e9dbdd667466e9e1e971aa17c9793e8a (diff) |
(LLVM up) Match TargetData API change in LLVM TOT.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62101 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjCGNU.cpp')
-rw-r--r-- | lib/CodeGen/CGObjCGNU.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp index 0bf3c2d1b9..2621a84914 100644 --- a/lib/CodeGen/CGObjCGNU.cpp +++ b/lib/CodeGen/CGObjCGNU.cpp @@ -698,7 +698,7 @@ void CGObjCGNU::GenerateClass(const ObjCImplementationDecl *OID) { const llvm::Type *ObjTy = 0; if (!LateBoundIVars()) { ObjTy = CGM.getTypes().ConvertType(Context.getObjCInterfaceType(ClassDecl)); - instanceSize = CGM.getTargetData().getABITypeSize(ObjTy); + instanceSize = CGM.getTargetData().getTypePaddedSize(ObjTy); } else { // This is required by newer ObjC runtimes. assert(0 && "Late-bound instance variables not yet supported"); |