[Mlir-commits] [mlir] [mlir][IR] Improve error message when parsing incorrect type (PR #134984)
Matthias Springer
llvmlistbot at llvm.org
Wed Apr 9 07:40:35 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>}}
----------------
matthias-springer wrote:
ohhh.. that's a typo. You don't have to write the full error message in `expected-error`.
https://github.com/llvm/llvm-project/pull/134984
More information about the Mlir-commits
mailing list