[lld] [lld][WebAssembly] Fix for --import-table when combined with reference types (PR #97451)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 10:48:29 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff ffca4ef5b1a8eff6097454df4b0f212e2393e41e 44750694ef3f65b13755898e5db4304240e23fb8 -- lld/wasm/SymbolTable.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp
index 09c463299b..081f811cd1 100644
--- a/lld/wasm/SymbolTable.cpp
+++ b/lld/wasm/SymbolTable.cpp
@@ -683,7 +683,8 @@ TableSymbol *SymbolTable::createUndefinedIndirectFunctionTable(StringRef name) {
type->Limits = limits;
uint32_t flags = config->exportTable ? 0 : WASM_SYMBOL_VISIBILITY_HIDDEN;
flags |= WASM_SYMBOL_UNDEFINED;
- Symbol *sym = addUndefinedTable(name, name, defaultModule, flags, nullptr, type);
+ Symbol *sym =
+ addUndefinedTable(name, name, defaultModule, flags, nullptr, type);
sym->markLive();
sym->forceExport = config->exportTable;
return cast<TableSymbol>(sym);
``````````
</details>
https://github.com/llvm/llvm-project/pull/97451
More information about the llvm-commits
mailing list