[PATCH] D42028: [WebAssembly] Fix build failures due to warning

Phabricator via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 13 08:01:17 PST 2018


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rL322442: [WebAssembly] Fix build failures due to warning (authored by sbc, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D42028?vs=129757&id=129764#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D42028

Files:
  lld/trunk/wasm/Writer.cpp


Index: lld/trunk/wasm/Writer.cpp
===================================================================
--- lld/trunk/wasm/Writer.cpp
+++ lld/trunk/wasm/Writer.cpp
@@ -443,8 +443,10 @@
     if (InputSegments.empty())
       continue;
     StringRef Comdat = InputSegments[0]->getComdat();
+#ifndef NDEBUG
     for (const InputSegment *IS : InputSegments)
       assert(IS->getComdat() == Comdat);
+#endif
     if (!Comdat.empty())
       Comdats[Comdat].emplace_back(ComdatEntry{WASM_COMDAT_DATA, I});
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42028.129764.patch
Type: text/x-patch
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180113/161ab0a3/attachment.bin>


More information about the llvm-commits mailing list