[lld] r325181 - Remove a failing static_assert.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 14 14:26:23 PST 2018


Author: ruiu
Date: Wed Feb 14 14:26:23 2018
New Revision: 325181

URL: http://llvm.org/viewvc/llvm-project?rev=325181&view=rev
Log:
Remove a failing static_assert.

This static_assert is legitimate, but it is failing on some build environments.
I'm removing it until it's fixed to unbreak the bots.

Modified:
    lld/trunk/wasm/Symbols.h

Modified: lld/trunk/wasm/Symbols.h
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Symbols.h?rev=325181&r1=325180&r2=325181&view=diff
==============================================================================
--- lld/trunk/wasm/Symbols.h (original)
+++ lld/trunk/wasm/Symbols.h Wed Feb 14 14:26:23 2018
@@ -237,8 +237,6 @@ union SymbolUnion {
 
 template <typename T, typename... ArgT>
 T *replaceSymbol(Symbol *S, ArgT &&... Arg) {
-  static_assert(std::is_trivially_destructible<T>(),
-                "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");




More information about the llvm-commits mailing list