[Mlir-commits] [mlir] 820e65f - [mlir] fixing typo in parseAttribute that was ignoring caller-specified types

Rob Suderman llvmlistbot at llvm.org
Mon Oct 12 11:37:18 PDT 2020


Author: Ben Vanik
Date: 2020-10-12T11:30:02-07:00
New Revision: 820e65f9e2369d2990fde4b3e7cfceb64f0df9c8

URL: https://github.com/llvm/llvm-project/commit/820e65f9e2369d2990fde4b3e7cfceb64f0df9c8
DIFF: https://github.com/llvm/llvm-project/commit/820e65f9e2369d2990fde4b3e7cfceb64f0df9c8.diff

LOG: [mlir] fixing typo in parseAttribute that was ignoring caller-specified types

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D89255

Added: 
    

Modified: 
    mlir/include/mlir/IR/DialectImplementation.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/IR/DialectImplementation.h b/mlir/include/mlir/IR/DialectImplementation.h
index c478b200b5d9..ba6f9df3f1de 100644
--- a/mlir/include/mlir/IR/DialectImplementation.h
+++ b/mlir/include/mlir/IR/DialectImplementation.h
@@ -287,7 +287,7 @@ class DialectAsmParser {
 
     // Parse any kind of attribute.
     Attribute attr;
-    if (parseAttribute(attr))
+    if (parseAttribute(attr, type))
       return failure();
 
     // Check for the right kind of attribute.


        


More information about the Mlir-commits mailing list