Fix alignment check to check the alignment of the intended type.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 May 2019 07:28:41 +0000 (07:28 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 17 May 2019 07:28:41 +0000 (07:28 +0000)
llvm-svn: 360997

clang/lib/AST/APValue.cpp

index 249c382f893eb039070eafbd99af78745b4ae5c0..c5db3cd582d050936ce745207595c82ceca39a5e 100644 (file)
@@ -34,7 +34,7 @@ void TypeInfoLValue::print(llvm::raw_ostream &Out,
 
 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)