summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Symbols.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Symbols.h')
-rw-r--r--lld/ELF/Symbols.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Symbols.h b/lld/ELF/Symbols.h
index 880699aa6f5..313689cab4c 100644
--- a/lld/ELF/Symbols.h
+++ b/lld/ELF/Symbols.h
@@ -435,8 +435,8 @@ void replaceBody(Symbol *S, ArgT &&... Arg) {
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");
+ assert(static_cast<SymbolBody *>(static_cast<T *>(nullptr)) == nullptr &&
+ "Not a SymbolBody");
new (S->Body.buffer) T(std::forward<ArgT>(Arg)...);
}
OpenPOWER on IntegriCloud