[NFC] Fix unused variable warning.

Differential Revision: https://reviews.llvm.org/D100451
This commit is contained in:
Bogdan Graur authored and Kadir Cetinkaya committed 2021-04-14 09:36:12 +02:00
1 parent d80178f7c1
commit 7975dd033c
1 file changed
+1
+1
View File
@@ -815,6 +815,7 @@ void RVAFlagTableChunk::writeTo(uint8_t *buf) const {
}
auto lt = [](RVAFlag &a, RVAFlag &b) { return a.rva < b.rva; };
auto eq = [](RVAFlag &a, RVAFlag &b) { return a.rva == b.rva; };
(void)eq;
std::sort(begin, begin + cnt, lt);
assert(std::unique(begin, begin + cnt, eq) == begin + cnt &&
"RVA tables should be de-duplicated");