[lld] r322442 - [WebAssembly] Fix build failures due to warning
Sam Clegg via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 13 07:59:53 PST 2018
Author: sbc
Date: Sat Jan 13 07:59:53 2018
New Revision: 322442
URL: http://llvm.org/viewvc/llvm-project?rev=322442&view=rev
Log:
[WebAssembly] Fix build failures due to warning
Oops, the waterfall tests with `-Werror -Wunused-variable`.
Differential Revision: https://reviews.llvm.org/D42028
Modified:
lld/trunk/wasm/Writer.cpp
Modified: lld/trunk/wasm/Writer.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/Writer.cpp?rev=322442&r1=322441&r2=322442&view=diff
==============================================================================
--- lld/trunk/wasm/Writer.cpp (original)
+++ lld/trunk/wasm/Writer.cpp Sat Jan 13 07:59:53 2018
@@ -443,8 +443,10 @@ void Writer::createLinkingSection() {
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});
}
More information about the llvm-commits
mailing list