diff --git a/src/parser/contexts.h b/src/parser/contexts.h index 8fa33cfaed3..46f64796d5d 100644 --- a/src/parser/contexts.h +++ b/src/parser/contexts.h @@ -1797,12 +1797,12 @@ struct ParseDefsCtx : TypeParserCtx { std::optional symbolNameIndex; if (!contents.empty()) { - auto name = contents; + auto symbolName = contents; auto [it, inserted] = - debugSymbolNameIndices.insert({name, debugSymbolNameIndices.size()}); + debugSymbolNameIndices.insert({symbolName, debugSymbolNameIndices.size()}); if (inserted) { assert(wasm.debugInfoSymbolNames.size() == it->second); - wasm.debugInfoSymbolNames.push_back(std::string(file)); + wasm.debugInfoSymbolNames.push_back(std::string(symbolName)); } *symbolNameIndex = it->second; }