зеркало из https://github.com/microsoft/clang-1.git
Use TypeAlignment constant rather than fixed alignment of 8
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@121473 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
7872d48c61
Коммит
eb0eb49ce5
|
@ -1722,7 +1722,8 @@ ParsedType Sema::CreateParsedType(QualType T, TypeSourceInfo *TInfo) {
|
|||
// FIXME: LocInfoTypes are "transient", only needed for passing to/from Parser
|
||||
// and Sema during declaration parsing. Try deallocating/caching them when
|
||||
// it's appropriate, instead of allocating them and keeping them around.
|
||||
LocInfoType *LocT = (LocInfoType*)BumpAlloc.Allocate(sizeof(LocInfoType), 8);
|
||||
LocInfoType *LocT = (LocInfoType*)BumpAlloc.Allocate(sizeof(LocInfoType),
|
||||
TypeAlignment);
|
||||
new (LocT) LocInfoType(T, TInfo);
|
||||
assert(LocT->getTypeClass() != T->getTypeClass() &&
|
||||
"LocInfoType's TypeClass conflicts with an existing Type class");
|
||||
|
|
Загрузка…
Ссылка в новой задаче