[mlir][ods] Assert on static getAttrName methods
This patch makes ODS insert an assert when calling static `get*AttrName` methods with a `OperationName` that the name is the same as the op's. This prevents accidentally passing the wrong kind of name and getting an erroneous attribute name. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D135698
Loading
Please sign in to comment