[WebAssembly] Fix build failures due to warning

Oops, the waterfall tests with `-Werror -Wunused-variable`.

Differential Revision: https://reviews.llvm.org/D42028

llvm-svn: 322442
This commit is contained in:
Sam Clegg 2018-01-13 15:59:53 +00:00
parent f98bccf06f
commit a697df52cf
1 changed files with 2 additions and 0 deletions

View File

@ -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});
}