File tree 1 file changed +3
-2
lines changed
mlir/lib/Dialect/Transform/IR 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -648,13 +648,14 @@ LogicalResult transform::ApplyConversionPatternsOp::verify() {
648
648
if (!llvm::hasSingleElement (typeConverterRegion.front ()))
649
649
return emitOpError ()
650
650
<< " expected exactly one op in default type converter region" ;
651
+ Operation *maybeTypeConverter = &typeConverterRegion.front ().front ();
651
652
auto typeConverterOp = dyn_cast<transform::TypeConverterBuilderOpInterface>(
652
- &typeConverterRegion. front (). front () );
653
+ maybeTypeConverter );
653
654
if (!typeConverterOp) {
654
655
InFlightDiagnostic diag = emitOpError ()
655
656
<< " expected default converter child op to "
656
657
" implement TypeConverterBuilderOpInterface" ;
657
- diag.attachNote (typeConverterOp ->getLoc ()) << " op without interface" ;
658
+ diag.attachNote (maybeTypeConverter ->getLoc ()) << " op without interface" ;
658
659
return diag;
659
660
}
660
661
// Check default type converter type.
You can’t perform that action at this time.
0 commit comments