@@ -870,7 +870,7 @@ LogicalResult CastOp::fold(ArrayRef<Attribute> operands,
870870template <typename IfLikeOp>
871871static LogicalResult VerifyIfLikeOp (IfLikeOp op,
872872 SymbolTableCollection &symbol_table) {
873- if (failed (op.verify ())) return failure ();
873+ if (failed (op.verifyInvariants ())) return failure ();
874874 FailureOr<TypeRange> ins = VerifyOperands (op);
875875 if (failed (ins)) return failure ();
876876 FailureOr<TypeRange> outs = VerifyResults (op);
@@ -902,7 +902,7 @@ static LogicalResult VerifyIfLikeOp(IfLikeOp op,
902902template <typename CaseLikeOp>
903903static LogicalResult VerifyCaseLikeOp (CaseLikeOp op,
904904 SymbolTableCollection &symbol_table) {
905- if (failed (op.verify ())) return failure ();
905+ if (failed (op.verifyInvariants ())) return failure ();
906906 FailureOr<TypeRange> ins = VerifyOperands (op);
907907 if (failed (ins)) return failure ();
908908 FailureOr<TypeRange> outs = VerifyResults (op);
@@ -928,7 +928,7 @@ static LogicalResult VerifyCaseLikeOp(CaseLikeOp op,
928928template <typename WhileLikeOp>
929929static LogicalResult VerifyWhileLikeOp (WhileLikeOp op,
930930 SymbolTableCollection &symbol_table) {
931- if (failed (op.verify ())) return failure ();
931+ if (failed (op.verifyInvariants ())) return failure ();
932932 FailureOr<TypeRange> ins = VerifyOperands (op);
933933 if (failed (ins)) return failure ();
934934 FailureOr<TypeRange> outs = VerifyResults (op);
@@ -955,7 +955,7 @@ static LogicalResult VerifyWhileLikeOp(WhileLikeOp op,
955955// ForOp
956956
957957LogicalResult ForOp::verifySymbolUses (SymbolTableCollection &symbol_table) {
958- if (failed (verify ())) return failure ();
958+ if (failed (verifyInvariants ())) return failure ();
959959 FailureOr<TypeRange> ins = VerifyOperands (*this );
960960 if (failed (ins)) return failure ();
961961 FailureOr<TypeRange> outs = VerifyResults (*this );
0 commit comments