(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
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index 0bf3c2d..2621a84 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -698,7 +698,7 @@
   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");