Author: rsmith Date: Fri May 17 00:28:41 2019 New Revision: 360997 URL: http://llvm.org/viewvc/llvm-project?rev=360997&view=rev Log: Fix alignment check to check the alignment of the intended type.
Modified: cfe/trunk/lib/AST/APValue.cpp Modified: cfe/trunk/lib/AST/APValue.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/APValue.cpp?rev=360997&r1=360996&r2=360997&view=diff ============================================================================== --- cfe/trunk/lib/AST/APValue.cpp (original) +++ cfe/trunk/lib/AST/APValue.cpp Fri May 17 00:28:41 2019 @@ -34,7 +34,7 @@ void TypeInfoLValue::print(llvm::raw_ost static_assert( 1 << llvm::PointerLikeTypeTraits<TypeInfoLValue>::NumLowBitsAvailable <= - alignof(const Type *), + alignof(Type), "Type is insufficiently aligned"); APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits