From: Richard Smith Date: Fri, 17 May 2019 07:28:41 +0000 (+0000) Subject: Fix alignment check to check the alignment of the intended type. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0bd8c98a910f309cc1a9b1dfc4d62afbd6105b7;p=clang Fix alignment check to check the alignment of the intended type. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@360997 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/APValue.cpp b/lib/AST/APValue.cpp index 249c382f89..c5db3cd582 100644 --- a/lib/AST/APValue.cpp +++ b/lib/AST/APValue.cpp @@ -34,7 +34,7 @@ void TypeInfoLValue::print(llvm::raw_ostream &Out, static_assert( 1 << llvm::PointerLikeTypeTraits::NumLowBitsAvailable <= - alignof(const Type *), + alignof(Type), "Type is insufficiently aligned"); APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V)