Skip to content

Commit d295ede

Browse files
committed
clang-format
1 parent 8436f5a commit d295ede

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lld/wasm/InputChunks.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,16 @@ void InputChunk::relocate(uint8_t *buf) const {
167167
}
168168
}
169169

170-
static bool relocIsLive(const WasmRelocation& rel, ObjFile* file) {
170+
static bool relocIsLive(const WasmRelocation &rel, ObjFile *file) {
171171
return rel.Type == R_WASM_TYPE_INDEX_LEB ||
172-
file->getSymbol(rel.Index)->isLive();
172+
file->getSymbol(rel.Index)->isLive();
173173
}
174174

175175
size_t InputChunk::getNumLiveRelocations() const {
176176
size_t result = 0;
177-
for (const WasmRelocation& rel : relocations) {
178-
if (relocIsLive(rel, file)) result ++;
177+
for (const WasmRelocation &rel : relocations) {
178+
if (relocIsLive(rel, file))
179+
result++;
179180
}
180181
return result;
181182
}

0 commit comments

Comments
 (0)