From c18d33900a20847fd56e013f281576660d5f8be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= Date: Wed, 25 Sep 2024 14:17:04 +0200 Subject: [PATCH] Formatting --- src/parser/contexts.h | 4 ++-- src/wasm/wasm-binary.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/parser/contexts.h b/src/parser/contexts.h index 206dde43898..a999e6f9d54 100644 --- a/src/parser/contexts.h +++ b/src/parser/contexts.h @@ -1798,8 +1798,8 @@ struct ParseDefsCtx : TypeParserCtx { std::optional 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)); diff --git a/src/wasm/wasm-binary.cpp b/src/wasm/wasm-binary.cpp index 207ba0742db..ac931bdc129 100644 --- a/src/wasm/wasm-binary.cpp +++ b/src/wasm/wasm-binary.cpp @@ -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};