[lld] da11f17 - [lld/MachO] Fix +asserts build after recent change

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 24 13:13:02 PST 2022


Author: Reid Kleckner
Date: 2022-02-24T13:12:48-08:00
New Revision: da11f17e90a86525b8902f0812180799f8d8fca9

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

LOG: [lld/MachO] Fix +asserts build after recent change

Added: 
    

Modified: 
    lld/MachO/MarkLive.cpp

Removed: 
    


################################################################################
diff  --git a/lld/MachO/MarkLive.cpp b/lld/MachO/MarkLive.cpp
index bc71676999e29..979803f1fe70b 100644
--- a/lld/MachO/MarkLive.cpp
+++ b/lld/MachO/MarkLive.cpp
@@ -160,7 +160,7 @@ void MarkLiveImpl<RecordWhyLive>::markTransitively() {
     // Mark things reachable from GC roots as live.
     while (!worklist.empty()) {
       WorklistEntry *entry = worklist.pop_back_val();
-      assert(getInputSection(entry)->live &&
+      assert(cast<ConcatInputSection>(getInputSection(entry))->live &&
              "We mark as live when pushing onto the worklist!");
 
       // Mark all symbols listed in the relocation table for this section.


        


More information about the llvm-commits mailing list