Skip to content

Commit 52aff97

Browse files
authored
[lld][wasm] Clear lazyBitcodeFiles while resetting context (#118440)
Hi @sbc100 I was looking into a use case involving the link function (which got my attention to reset). I see that `lazyBitcodeFiles` variable was introduced here #114327 but I don't see it being reset while destroying the context eventually. Hopefully this should be the correct way to address it.
1 parent 7be3326 commit 52aff97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/wasm/Driver.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ void Ctx::reset() {
5959
stubFiles.clear();
6060
sharedFiles.clear();
6161
bitcodeFiles.clear();
62+
lazyBitcodeFiles.clear();
6263
syntheticFunctions.clear();
6364
syntheticGlobals.clear();
6465
syntheticTables.clear();

0 commit comments

Comments
 (0)