[llvm] [llvm][ir]: fix llc crashes on function definitions with label parameters (PR #136285)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 05:49:28 PDT 2025
================
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s 2>&1 | FileCheck %s
+
+define void @invalid_arg_type(label %p) {
+; CHECK: Function argument cannot be of label type!
+ ret void
+}
+
----------------
phoebewang wrote:
Add a test for call site, e.g.:
```
define void @test(i32 %0) {
1:
call void @foo(label %1)
ret void
}
declare void @foo(label)
```
https://github.com/llvm/llvm-project/pull/136285
More information about the llvm-commits
mailing list