diff options
-rw-r--r-- | lib/AST/ASTContext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index f356c908e9..d5003be5de 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -2813,9 +2813,10 @@ QualType ASTContext::getUnaryTransformType(QualType BaseType, 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); } |