[Mlir-commits] [mlir] [mlir][IR] Improve error message when parsing incorrect type (PR #134984)
    Matthias Springer 
    llvmlistbot at llvm.org
       
    Wed Apr  9 06:30:24 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:
In the former case, I'm printing a `StringRef`. In the latter case, I'm printing an `mlir::Type`. Those get printed with quotes.
https://github.com/llvm/llvm-project/pull/134984
    
    
More information about the Mlir-commits
mailing list