summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-01 05:12:13 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-01 05:12:13 +0000
commit6e862bbfa37533d7f4fddd30a1a9d5d4aceeb5b2 (patch)
tree21c4277da49ea97b11817a01c210f63bbf9e664b
parenteb9a87918b7db2ed9a72a22b23e5fe193b5fcd53 (diff)
downloadbcm5719-llvm-6e862bbfa37533d7f4fddd30a1a9d5d4aceeb5b2.tar.gz
bcm5719-llvm-6e862bbfa37533d7f4fddd30a1a9d5d4aceeb5b2.zip
Try to fix MSVC build.
llvm-svn: 268182
-rw-r--r--lld/ELF/Symbols.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 03d023619e2..880699aa6f5 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -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");
OpenPOWER on IntegriCloud