forked from OSchip/llvm-project
[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:
parent
f98bccf06f
commit
a697df52cf
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue