Properly align UnaryTransformType when allocating it
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132064 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index f356c90..d5003be 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -2813,9 +2813,10 @@
UnaryTransformType::UTTKind Kind)
const {
UnaryTransformType *Ty =
- new UnaryTransformType (BaseType, UnderlyingType, Kind,
- UnderlyingType->isDependentType() ?
- QualType() : UnderlyingType);
+ new (*this, TypeAlignment) UnaryTransformType (BaseType, UnderlyingType,
+ Kind,
+ UnderlyingType->isDependentType() ?
+ QualType() : UnderlyingType);
Types.push_back(Ty);
return QualType(Ty, 0);
}