[lld] 09b8b44 - [lld/mac] Reorder an assert() and a printArchiveMemberLoad() call

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 06:42:43 PST 2022


Author: Nico Weber
Date: 2022-11-23T09:40:51-05:00
New Revision: 09b8b44760423ff822b3755647a8f69ea1b8de3e

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

LOG: [lld/mac] Reorder an assert() and a printArchiveMemberLoad() call

No behavior difference in practice, but makes it possible to use `-t`
for debugging when that assert fails.

Added: 
    

Modified: 
    lld/MachO/InputFiles.cpp

Removed: 
    


################################################################################
diff  --git a/lld/MachO/InputFiles.cpp b/lld/MachO/InputFiles.cpp
index 5d45dd8caed85..bedc273c5283a 100644
--- a/lld/MachO/InputFiles.cpp
+++ b/lld/MachO/InputFiles.cpp
@@ -2212,9 +2212,9 @@ void BitcodeFile::parseLazy() {
 }
 
 void macho::extract(InputFile &file, StringRef reason) {
+  printArchiveMemberLoad(reason, &file);
   assert(file.lazy);
   file.lazy = false;
-  printArchiveMemberLoad(reason, &file);
   if (auto *bitcode = dyn_cast<BitcodeFile>(&file)) {
     bitcode->parse();
   } else {


        


More information about the llvm-commits mailing list