[GlobalISel][Legalizer] LegalizerInfo verifier: Making LegalizerInfo::verify(...) errors fatal

Reviewers: aemerson, qcolombet

Reviewed By: qcolombet

Differential Revision: https://reviews.llvm.org/D46339

llvm-svn: 333619
This commit is contained in:
Roman Tereshin 2018-05-31 01:56:07 +00:00
parent 041719be2f
commit 7e5b6b8d2b

View File

@ -564,6 +564,9 @@ void LegalizerInfo::verify(const MCInstrInfo &MII) const {
for (unsigned Opcode : FailedOpcodes)
errs() << " " << MII.getName(Opcode);
errs() << "\n";
report_fatal_error("ill-defined LegalizerInfo"
", try -debug-only=legalizer-info for details");
}
#endif
}