r360997 - Fix alignment check to check the alignment of the intended type.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Fri May 17 00:28:41 PDT 2019


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)




More information about the cfe-commits mailing list