Sfoglia il codice sorgente

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
Richard Smith 6 anni fa
parent
commit
b0bd8c98a9
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/AST/APValue.cpp

+ 1 - 1
lib/AST/APValue.cpp

@@ -34,7 +34,7 @@ void TypeInfoLValue::print(llvm::raw_ostream &Out,
 
 
 static_assert(
 static_assert(
     1 << llvm::PointerLikeTypeTraits<TypeInfoLValue>::NumLowBitsAvailable <=
     1 << llvm::PointerLikeTypeTraits<TypeInfoLValue>::NumLowBitsAvailable <=
-        alignof(const Type *),
+        alignof(Type),
     "Type is insufficiently aligned");
     "Type is insufficiently aligned");
 
 
 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V)
 APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V)