[lld] r284739 - Remove a use of llvm::AlignOf that I missed.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 08:55:41 PDT 2016
Author: d0k
Date: Thu Oct 20 10:55:41 2016
New Revision: 284739
URL: http://llvm.org/viewvc/llvm-project?rev=284739&view=rev
Log:
Remove a use of llvm::AlignOf that I missed.
Modified:
lld/trunk/ELF/Symbols.h
Modified: lld/trunk/ELF/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Symbols.h?rev=284739&r1=284738&r2=284739&view=diff
==============================================================================
--- lld/trunk/ELF/Symbols.h (original)
+++ lld/trunk/ELF/Symbols.h Thu Oct 20 10:55:41 2016
@@ -450,8 +450,7 @@ void printTraceSymbol(Symbol *Sym);
template <typename T, typename... ArgT>
void replaceBody(Symbol *S, ArgT &&... Arg) {
static_assert(sizeof(T) <= sizeof(S->Body), "Body too small");
- static_assert(llvm::AlignOf<T>::Alignment <=
- llvm::AlignOf<decltype(S->Body)>::Alignment,
+ static_assert(alignof(T) <= alignof(decltype(S->Body)),
"Body not aligned enough");
assert(static_cast<SymbolBody *>(static_cast<T *>(nullptr)) == nullptr &&
"Not a SymbolBody");
More information about the llvm-commits
mailing list