verification_pass: Have an appropriate assertion message

This commit is contained in:
MerryMage 2020-05-28 20:40:11 +01:00
parent ebddf6cca0
commit cae857b8c8

View file

@ -23,7 +23,7 @@ void VerificationPass(const IR::Block& block) {
const IR::Type t2 = IR::GetArgTypeOf(inst.GetOpcode(), i); const IR::Type t2 = IR::GetArgTypeOf(inst.GetOpcode(), i);
if (!IR::AreTypesCompatible(t1, t2)) { if (!IR::AreTypesCompatible(t1, t2)) {
std::puts(IR::DumpBlock(block).c_str()); std::puts(IR::DumpBlock(block).c_str());
ASSERT(false); ASSERT_FALSE("above block failed validation");
} }
} }
} }