diff options
Diffstat (limited to 'lld/COFF/Symbols.h')
| -rw-r--r-- | lld/COFF/Symbols.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/COFF/Symbols.h b/lld/COFF/Symbols.h index 930ed3cc743..1f69602631b 100644 --- a/lld/COFF/Symbols.h +++ b/lld/COFF/Symbols.h @@ -421,8 +421,8 @@ void replaceSymbol(Symbol *S, ArgT &&... Arg) { static_assert(sizeof(T) <= sizeof(SymbolUnion), "Symbol too small"); static_assert(alignof(T) <= alignof(SymbolUnion), "SymbolUnion not aligned enough"); - assert(static_cast<Symbol *>(static_cast<T *>(nullptr)) == nullptr && - "Not a Symbol"); + static_assert(static_cast<Symbol *>(static_cast<T *>(nullptr)) == nullptr, + "Not a Symbol"); new (S) T(std::forward<ArgT>(Arg)...); } } // namespace coff |

