Skip to content

Commit 3e4ad66

Browse files
committed
Fix build: the dump() method is only available in Asserts build (NFC)
1 parent 340d746 commit 3e4ad66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/TableGen/Constraint.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ Constraint::Constraint(const llvm::Record *record)
3131
} else if (def->isSubClassOf("SuccessorConstraint")) {
3232
kind = CK_Successor;
3333
} else if(!def->isSubClassOf("Constraint")) {
34-
llvm::errs() << "Expected a constraint but got: \n";
35-
def->dump();
34+
llvm::errs() << "Expected a constraint but got: \n" << *def << "\n";
3635
llvm::report_fatal_error("Abort");
3736
}
3837
}

0 commit comments

Comments
 (0)