[lld] 52aff97 - [lld][wasm] Clear lazyBitcodeFiles while resetting context (#118440)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 22:18:47 PST 2024
Author: Anutosh Bhat
Date: 2024-12-03T22:18:43-08:00
New Revision: 52aff97f40c19671be7d1f5eecc2985ebf260a49
URL: https://github.com/llvm/llvm-project/commit/52aff97f40c19671be7d1f5eecc2985ebf260a49
DIFF: https://github.com/llvm/llvm-project/commit/52aff97f40c19671be7d1f5eecc2985ebf260a49.diff
LOG: [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
https://github.com/llvm/llvm-project/pull/114327 but I don't see it
being reset while destroying the context eventually. Hopefully this
should be the correct way to address it.
Added:
Modified:
lld/wasm/Driver.cpp
Removed:
################################################################################
diff --git a/lld/wasm/Driver.cpp b/lld/wasm/Driver.cpp
index 8d01ff839ddfcf..37a0156c728f6f 100644
--- a/lld/wasm/Driver.cpp
+++ b/lld/wasm/Driver.cpp
@@ -59,6 +59,7 @@ void Ctx::reset() {
stubFiles.clear();
sharedFiles.clear();
bitcodeFiles.clear();
+ lazyBitcodeFiles.clear();
syntheticFunctions.clear();
syntheticGlobals.clear();
syntheticTables.clear();
More information about the llvm-commits
mailing list