[llvm] [WebAssembly] Add ref.test_func handling to AsmParser (PR #139642)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 7 10:55:13 PDT 2025


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 HEAD~1 HEAD --extensions cpp -- llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
``````````

</details>

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

``````````diff
diff --git a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
index 81d04833e..19c9e9cf4 100644
--- a/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
+++ b/llvm/lib/Target/WebAssembly/AsmParser/WebAssemblyAsmParser.cpp
@@ -670,7 +670,8 @@ public:
         return true;
       ExpectFuncType = true;
     } else if (Name == "ref.test") {
-      // When we get support for wasm-gc types, this should become ExpectRefType.
+      // When we get support for wasm-gc types, this should become
+      // ExpectRefType.
       ExpectFuncType = true;
     }
 

``````````

</details>


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


More information about the llvm-commits mailing list