projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb9a879
)
Try to fix MSVC build.
author
Peter Collingbourne
<peter@pcc.me.uk>
Sun, 1 May 2016 05:12:13 +0000
(
05:12
+0000)
committer
Peter Collingbourne
<peter@pcc.me.uk>
Sun, 1 May 2016 05:12:13 +0000
(
05:12
+0000)
llvm-svn: 268182
lld/ELF/Symbols.h
patch
|
blob
|
history
diff --git
a/lld/ELF/Symbols.h
b/lld/ELF/Symbols.h
index
03d0236
..
880699a
100644
(file)
--- 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");