[lld/mac] Reorder an assert() and a printArchiveMemberLoad() call
authorNico Weber <thakis@chromium.org>
Wed, 23 Nov 2022 14:40:17 +0000 (09:40 -0500)
committerNico Weber <thakis@chromium.org>
Wed, 23 Nov 2022 14:40:51 +0000 (09:40 -0500)
No behavior difference in practice, but makes it possible to use `-t`
for debugging when that assert fails.

lld/MachO/InputFiles.cpp

index 5d45dd8..bedc273 100644 (file)
@@ -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 {