FxExpression::EmitCompare checks for the emitted expression being constant and outputs a warning... But never does anything to handle it.
It ends up passing a constant index into opcodes expecting a register index. It seems this isn't caught in any way by the compiler backend nor the VM, but this has been causing random Invalid Instruction: cmp <None>, 1 errors in the JIT.
Steps to reproduce: (Using the attached test file)
- Start the game with the JIT enabled.