[NFC] Fix unused variable warning.
Differential Revision: https://reviews.llvm.org/D100451
This commit is contained in:
committed by
Kadir Cetinkaya
parent
d80178f7c1
commit
7975dd033c
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user