[cfe-commits] r76903 - /cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Anders Carlsson
andersca at mac.com
Thu Jul 23 14:52:04 PDT 2009
Author: andersca
Date: Thu Jul 23 16:52:03 2009
New Revision: 76903
URL: http://llvm.org/viewvc/llvm-project?rev=76903&view=rev
Log:
Fix another thinko.
Modified:
cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
Modified: cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp?rev=76903&r1=76902&r2=76903&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGRecordLayoutBuilder.cpp Thu Jul 23 16:52:03 2009
@@ -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;
More information about the cfe-commits
mailing list