mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-11 04:06:20 +00:00
Try to fix MSVC build.
llvm-svn: 268182
This commit is contained in:
parent
eb9a87918b
commit
6e862bbfa3
@ -432,7 +432,8 @@ struct Symbol {
|
||||
template <typename T, typename... ArgT>
|
||||
void replaceBody(Symbol *S, ArgT &&... Arg) {
|
||||
static_assert(sizeof(T) <= sizeof(S->Body), "Body too small");
|
||||
static_assert(alignof(T) <= alignof(decltype(S->Body)),
|
||||
static_assert(llvm::AlignOf<T>::Alignment <=
|
||||
llvm::AlignOf<decltype(S->Body)>::Alignment,
|
||||
"Body not aligned enough");
|
||||
static_assert(static_cast<SymbolBody *>(static_cast<T *>(nullptr)) == nullptr,
|
||||
"Not a SymbolBody");
|
||||
|
Loading…
x
Reference in New Issue
Block a user