[lld] r365171 - [WebAssembly] Delete static_assert(sizeof(SymbolUnion) <= 96) to fix Windows builds

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 18:45:13 PDT 2019


Author: maskray
Date: Thu Jul  4 18:45:12 2019
New Revision: 365171

URL: http://llvm.org/viewvc/llvm-project?rev=365171&view=rev
Log:
[WebAssembly] Delete static_assert(sizeof(SymbolUnion) <= 96) to fix Windows builds

http://lab.llvm.org:8011/builders/sanitizer-windows/builds/47944/steps/stage%201%20build/logs/stdio

Needs to figure out later the size on Windows.

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=365171&r1=365170&r2=365171&view=diff
==============================================================================
--- lld/trunk/wasm/Symbols.h (original)
+++ lld/trunk/wasm/Symbols.h Thu Jul  4 18:45:12 2019
@@ -475,11 +475,6 @@ union SymbolUnion {
   alignas(SectionSymbol) char I[sizeof(SectionSymbol)];
 };
 
-// It is important to keep the size of SymbolUnion small for performance and
-// memory usage reasons. 96 bytes is a soft limit based on the size of
-// UndefinedFunction on a 64-bit system.
-static_assert(sizeof(SymbolUnion) <= 96, "SymbolUnion too large");
-
 void printTraceSymbol(Symbol *Sym);
 void printTraceSymbolUndefined(StringRef Name, const InputFile* File);
 




More information about the llvm-commits mailing list