[Mlir-commits] [mlir] [mlir][IR] Improve error message when parsing incorrect type (PR #134984)
Jeremy Kun
llvmlistbot at llvm.org
Wed Apr 9 06:31:57 PDT 2025
================
@@ -129,7 +129,7 @@ func.func private @test_verifier_fails() -> () attributes {
// -----
func.func private @test_attr_with_type_failed_to_parse_type() -> () attributes {
- // expected-error at +2 {{invalid kind of type specified}}
+ // expected-error at +2 {{invalid kind of type specified: expected builtin.integer, but found 'vector<4xi32>}}
----------------
j2kun wrote:
I meant only the latter. The assertion is `'vector<4xi32>`, not `'vector<4xi32>'`, and in your PR description only a single leading quote is included.
https://github.com/llvm/llvm-project/pull/134984
More information about the Mlir-commits
mailing list