We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 891a0d7 commit 564619bCopy full SHA for 564619b
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@ -2065,8 +2065,8 @@ void OpEmitter::genTypeInterfaceMethods() {
2065
return;
2066
// Generate 'inferReturnTypes' method declaration using the interface method
2067
// declared in 'InferTypeOpInterface' op interface.
2068
- const auto *trait = dyn_cast<InterfaceTrait>(
2069
- op.getTrait("::mlir::InferTypeOpInterface::Trait"));
+ const auto *trait =
+ cast<InterfaceTrait>(op.getTrait("::mlir::InferTypeOpInterface::Trait"));
2070
Interface interface = trait->getInterface();
2071
Method *method = [&]() -> Method * {
2072
for (const InterfaceMethod &interfaceMethod : interface.getMethods()) {
0 commit comments