projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
58d1988
)
[lld/mac] Reorder an assert() and a printArchiveMemberLoad() call
author
Nico Weber
<thakis@chromium.org>
Wed, 23 Nov 2022 14:40:17 +0000
(09:40 -0500)
committer
Nico 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
patch
|
blob
|
history
diff --git
a/lld/MachO/InputFiles.cpp
b/lld/MachO/InputFiles.cpp
index
5d45dd8
..
bedc273
100644
(file)
--- 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 {