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 7d1bf1c commit 340d746Copy full SHA for 340d746
mlir/lib/TableGen/Constraint.cpp
@@ -30,8 +30,10 @@ Constraint::Constraint(const llvm::Record *record)
30
kind = CK_Region;
31
} else if (def->isSubClassOf("SuccessorConstraint")) {
32
kind = CK_Successor;
33
- } else {
34
- assert(def->isSubClassOf("Constraint"));
+ } else if(!def->isSubClassOf("Constraint")) {
+ llvm::errs() << "Expected a constraint but got: \n";
35
+ def->dump();
36
+ llvm::report_fatal_error("Abort");
37
}
38
39
0 commit comments