x64Emitter: fix silent failure if WriteNormalOp is passed two memory operands

Should now fail loudly and clearly instead.
This commit is contained in:
Fiora 2014-09-15 07:08:08 -07:00
parent 74f8a48ee6
commit 02dce5dbbf

View File

@ -1222,6 +1222,7 @@ void XEmitter::WriteNormalOp(XEmitter *emit, int bits, NormalOp op, const OpArg
} }
else else
{ {
_assert_msg_(DYNA_REC, a2.IsSimpleReg() || a2.IsImm(), "WriteNormalOp - a1 and a2 cannot both be memory");
a1.WriteNormalOp(emit, true, op, a2, bits); a1.WriteNormalOp(emit, true, op, a2, bits);
} }
} }