Merge pull request #685 from lioncash/invalid-reg Core: Use the enum constant for an invalid reg in JitRegCache