Skip to content

Commit 0658853

Browse files
committed
Print region argument only when argAttrs are present
Fixes: #132894
1 parent 26bc1c6 commit 0658853

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Bug: https://github.com/llvm/llvm-project/issues/132894
2+
3+
// RUN: not mlir-opt %s 2>&1 | FileCheck %s
4+
5+
// CHECK: error: 'func.func' op entry block must have 1 arguments to match function signature
6+
7+
module {
8+
func.func @f(f32) {
9+
%c0 = arith.constant 0 : index
10+
return
11+
}
12+
}
13+

0 commit comments

Comments
 (0)