]> granicus.if.org Git - clang/commitdiff
Fix another thinko.
authorAnders Carlsson <andersca@mac.com>
Thu, 23 Jul 2009 21:52:03 +0000 (21:52 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 23 Jul 2009 21:52:03 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76903 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRecordLayoutBuilder.cpp

index 455b92996a96fea0859371d5b323d8ce248b4fa5..875f5c30c7bd6e288284e65d0fa9530fdb95f056 100644 (file)
@@ -168,8 +168,8 @@ void CGRecordLayoutBuilder::LayoutUnion(const RecordDecl *D) {
     
     const llvm::Type *FieldTy = 
       Types.ConvertTypeForMemRecursive(Field->getType());
-    unsigned FieldAlign = Types.getTargetData().getTypeAllocSize(FieldTy);
-    uint64_t FieldSize = Types.getTargetData().getABITypeAlignment(FieldTy);
+    unsigned FieldAlign = Types.getTargetData().getABITypeAlignment(FieldTy);
+    uint64_t FieldSize = Types.getTargetData().getTypeAllocSize(FieldTy);
     
     if (FieldAlign < Align)
       continue;