1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Fixed payload enum switch case comparison

This commit is contained in:
Brian Fiete 2023-07-24 10:32:31 -07:00
parent 52f746aae9
commit 11bde5caf2
5 changed files with 65 additions and 1 deletions

View file

@ -1386,6 +1386,8 @@ void BeIRCodeGen::HandleNextCmd()
{
CMD_PARAM(BeValue*, lhs);
CMD_PARAM(BeValue*, rhs);
if (lhs->GetType() != rhs->GetType())
Fail("Type mismatch for CmpEQ");
SetResult(curId, mBeModule->CreateCmp(BeCmpKind_EQ, lhs, rhs));
}
break;