[lld] 6ae77ec - Revert "[lld] Fix warnings"

Kyungwoo Lee via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 18 17:18:35 PDT 2024


Author: Kyungwoo Lee
Date: 2024-03-18T17:15:40-07:00
New Revision: 6ae77eca6ceb17033eb58440038e620eba1c6f51

URL: https://github.com/llvm/llvm-project/commit/6ae77eca6ceb17033eb58440038e620eba1c6f51
DIFF: https://github.com/llvm/llvm-project/commit/6ae77eca6ceb17033eb58440038e620eba1c6f51.diff

LOG: Revert "[lld] Fix warnings"

This reverts commit 6800f422c22ffd672b1e31f0d0a3fa29d19b7a13 as the part of revert https://github.com/llvm/llvm-project/pull/82928.

buildbot failures: https://lab.llvm.org/buildbot/#/builders/168/builds/19302/steps/10/logs/stdio

Added: 
    

Modified: 
    lld/MachO/ObjC.cpp

Removed: 
    


################################################################################
diff  --git a/lld/MachO/ObjC.cpp b/lld/MachO/ObjC.cpp
index 3e26ed5f2ebe82..9b2446360e4f7f 100644
--- a/lld/MachO/ObjC.cpp
+++ b/lld/MachO/ObjC.cpp
@@ -636,7 +636,6 @@ void ObjcCategoryMerger::parseProtocolListInfo(const ConcatInputSection *isec,
       /*extra null value*/ target->wordSize;
   assert(expectedListSize == ptrListSym->isec->data.size() &&
          "Protocol list does not match expected size");
-  (void)expectedListSize;
 
   uint32_t off = protocolListHeaderLayout.totalSize;
   for (uint32_t inx = 0; inx < protocolCount; ++inx) {
@@ -1034,7 +1033,6 @@ void ObjcCategoryMerger::mergeCategoriesIntoSingleCategory(
 
   Defined *newCatDef = emitCategory(extInfo);
   assert(newCatDef && "Failed to create a new category");
-  (void)newCatDef;
 
   for (auto &catInfo : categories)
     catInfo.wasMerged = true;


        


More information about the llvm-commits mailing list