зеркало из https://github.com/microsoft/clang-1.git
Fix another thinko.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
5abeb52443
Коммит
177d4d8700
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче