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