[llvm] [WebAssembly] Unify type checking in AsmTypeCheck (PR #110094)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 26 14:26:48 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 b62075e0290b5fd626e49cb901b8bc4ac09fdd60 8feb666d67dd88c0a62ebaa2d62df635419cb005 --extensions cpp,h -- llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.h
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
index 24a11a5201..7b7b6e2064 100644
--- a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
+++ b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmTypeCheck.cpp
@@ -272,10 +272,9 @@ bool WebAssemblyAsmTypeCheck::getTable(SMLoc ErrorLoc, const MCOperand &TableOp,
   return false;
 }
 
-bool WebAssemblyAsmTypeCheck:getSignature(SMLoc ErrorLoc,
-                                           const MCOperand &SigOp,
-                                           wasm::WasmSymbolType Type,
-                                           const wasm::WasmSignature *&Sig) {
+bool WebAssemblyAsmTypeCheck
+    : getSignature(SMLoc ErrorLoc, const MCOperand &SigOp,
+                   wasm::WasmSymbolType Type, const wasm::WasmSignature *&Sig) {
   const MCSymbolRefExpr *SymRef = nullptr;
   if (getSymRef(ErrorLoc, SigOp, SymRef))
     return true;

``````````

</details>


https://github.com/llvm/llvm-project/pull/110094


More information about the llvm-commits mailing list