Fix another thinko.
llvm-svn: 76903
diff --git a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
index 455b929..875f5c3 100644
--- a/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
+++ b/clang/lib/CodeGen/CGRecordLayoutBuilder.cpp
@@ -168,8 +168,8 @@
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;