From 77483765eb77b3f15b03ef1d876d4356623aa460 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 17 May 2019 07:28:41 +0000 Subject: Fix alignment check to check the alignment of the intended type. llvm-svn: 360997 --- clang/lib/AST/APValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/AST/APValue.cpp') diff --git a/clang/lib/AST/APValue.cpp b/clang/lib/AST/APValue.cpp index 249c382f893..c5db3cd582d 100644 --- a/clang/lib/AST/APValue.cpp +++ b/clang/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) -- cgit v1.2.3