Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
osa1 committed Sep 25, 2024
1 parent 7e284ed commit c18d339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/parser/contexts.h
Original file line number Diff line number Diff line change
Expand Up @@ -1798,8 +1798,8 @@ struct ParseDefsCtx : TypeParserCtx<ParseDefsCtx> {
std::optional<BinaryLocation> symbolNameIndex;
if (!contents.empty()) {
auto symbolName = contents;
auto [it, inserted] =
debugSymbolNameIndices.insert({symbolName, debugSymbolNameIndices.size()});
auto [it, inserted] = debugSymbolNameIndices.insert(
{symbolName, debugSymbolNameIndices.size()});
if (inserted) {
assert(wasm.debugInfoSymbolNames.size() == it->second);
wasm.debugInfoSymbolNames.push_back(std::string(symbolName));
Expand Down
3 changes: 2 additions & 1 deletion src/wasm/wasm-binary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,8 @@ void WasmBinaryReader::readNextDebugLocation() {
peek = sourceMap->peek();
if (!(peek == ',' || peek == '\"')) {
int32_t symbolNameIndexDelta = readBase64VLQ(*sourceMap);
symbolNameIndex = nextDebugLocation.symbolNameIndex.value_or(0) + symbolNameIndexDelta;
symbolNameIndex =
nextDebugLocation.symbolNameIndex.value_or(0) + symbolNameIndexDelta;
}

nextDebugLocation = {fileIndex, lineNumber, columnNumber, symbolNameIndex};
Expand Down

0 comments on commit c18d339

Please sign in to comment.