diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-17 07:28:41 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-17 07:28:41 +0000 |
commit | 77483765eb77b3f15b03ef1d876d4356623aa460 (patch) | |
tree | b09e1cd709ece74333b67e3b65a6fd111054dccd /clang/lib/AST/APValue.cpp | |
parent | aee9448939cdee5064e65225d1039e7e7f0facc7 (diff) | |
download | bcm5719-llvm-77483765eb77b3f15b03ef1d876d4356623aa460.tar.gz bcm5719-llvm-77483765eb77b3f15b03ef1d876d4356623aa460.zip |
Fix alignment check to check the alignment of the intended type.
llvm-svn: 360997
Diffstat (limited to 'clang/lib/AST/APValue.cpp')
-rw-r--r-- | clang/lib/AST/APValue.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<TypeInfoLValue>::NumLowBitsAvailable <= - alignof(const Type *), + alignof(Type), "Type is insufficiently aligned"); APValue::LValueBase::LValueBase(const ValueDecl *P, unsigned I, unsigned V) |