Try to fix MSVC build.
authorPeter Collingbourne <peter@pcc.me.uk>
Sun, 1 May 2016 05:12:13 +0000 (05:12 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Sun, 1 May 2016 05:12:13 +0000 (05:12 +0000)
llvm-svn: 268182

lld/ELF/Symbols.h

index 03d0236..880699a 100644 (file)
@@ -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");