forked from OSchip/llvm-project
Use TypeAlignment constant rather than fixed alignment of 8
llvm-svn: 121473
This commit is contained in:
parent
86f2c57c8d
commit
21c0fc18bf
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue