diff options
author | Nico Weber <thakis@chromium.org> | 2024-12-19 11:30:54 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-19 11:30:54 -0500 |
commit | f8bcd93224283291534d75a61cc7e5d8fbf0d311 (patch) | |
tree | 04f348b0731251160fa74cee65fd0d78e649f472 /llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp | |
parent | b05071de89e9c26ef8b3f7ab2ff6a56241b54ea8 (diff) | |
download | llvm-f8bcd93224283291534d75a61cc7e5d8fbf0d311.zip llvm-f8bcd93224283291534d75a61cc7e5d8fbf0d311.tar.gz llvm-f8bcd93224283291534d75a61cc7e5d8fbf0d311.tar.bz2 |
[lld/COFF] Fix -start-lib / -end-lib after reviews.llvm.org/D116434 (#120452)
That change forgot to set `lazy` to false before calling `addFile()` in
`forceLazy()` which caused `addFile()` to parse the file we want to
force a load for to be added as a lazy object again instead of adding
the file to `ctx.objFileInstances`.
This is caught by a pretty simple test (included).
Diffstat (limited to 'llvm/lib/ToolDrivers/llvm-lib/LibDriver.cpp')
0 files changed, 0 insertions, 0 deletions