diff --git a/lld/wasm/Symbols.h b/lld/wasm/Symbols.h index 726b690b0d14..59278730f932 100644 --- a/lld/wasm/Symbols.h +++ b/lld/wasm/Symbols.h @@ -237,8 +237,6 @@ union SymbolUnion { template T *replaceSymbol(Symbol *S, ArgT &&... Arg) { - static_assert(std::is_trivially_destructible(), - "Symbol types must be trivially destructible"); static_assert(sizeof(T) <= sizeof(SymbolUnion), "Symbol too small"); static_assert(alignof(T) <= alignof(SymbolUnion), "SymbolUnion not aligned enough");