[lld] 7975dd0 - [NFC] Fix unused variable warning.

Kadir Cetinkaya via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 00:36:28 PDT 2021


Author: Bogdan Graur
Date: 2021-04-14T09:36:12+02:00
New Revision: 7975dd033cb950934b70bd56313fa11a9096e115

URL: https://github.com/llvm/llvm-project/commit/7975dd033cb950934b70bd56313fa11a9096e115
DIFF: https://github.com/llvm/llvm-project/commit/7975dd033cb950934b70bd56313fa11a9096e115.diff

LOG: [NFC] Fix unused variable warning.

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

Added: 
    

Modified: 
    lld/COFF/Chunks.cpp

Removed: 
    


################################################################################
diff  --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp
index 083742d6f55a..b91398f1e34e 100644
--- a/lld/COFF/Chunks.cpp
+++ b/lld/COFF/Chunks.cpp
@@ -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");


        


More information about the llvm-commits mailing list