[lld] [LLD][COFF] Avoid forcing lazy symbols in loadMinGWSymbols during symbol table enumeration (PR #141593)

Martin Storsjö via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 01:49:57 PDT 2025


================
@@ -245,14 +245,23 @@ void SymbolTable::reportUndefinedSymbol(const UndefinedDiag &undefDiag) {
 }
 
 void SymbolTable::loadMinGWSymbols() {
+  std::vector<Symbol *> undefs;
   for (auto &i : symMap) {
----------------
mstorsjo wrote:

So the problem we're fixing here is that we avoid mutating `symMap` while iterating over it?

https://github.com/llvm/llvm-project/pull/141593


More information about the llvm-commits mailing list