[PATCH] D100451: [NFC] Fix unused variable warning.

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


This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7975dd033cb9: [NFC] Fix unused variable warning. (authored by bgraur, committed by kadircet).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100451/new/

https://reviews.llvm.org/D100451

Files:
  lld/COFF/Chunks.cpp


Index: lld/COFF/Chunks.cpp
===================================================================
--- lld/COFF/Chunks.cpp
+++ lld/COFF/Chunks.cpp
@@ -815,6 +815,7 @@
   }
   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");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100451.337359.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210414/7cf8af2f/attachment.bin>


More information about the llvm-commits mailing list