From 02dce5dbbf7b399efda28601e32e2eeaf663c31a Mon Sep 17 00:00:00 2001 From: Fiora Date: Mon, 15 Sep 2014 07:08:08 -0700 Subject: [PATCH] x64Emitter: fix silent failure if WriteNormalOp is passed two memory operands Should now fail loudly and clearly instead. --- Source/Core/Common/x64Emitter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Core/Common/x64Emitter.cpp b/Source/Core/Common/x64Emitter.cpp index ec80600260..fa16cf2b36 100644 --- a/Source/Core/Common/x64Emitter.cpp +++ b/Source/Core/Common/x64Emitter.cpp @@ -1222,6 +1222,7 @@ void XEmitter::WriteNormalOp(XEmitter *emit, int bits, NormalOp op, const OpArg } else { + _assert_msg_(DYNA_REC, a2.IsSimpleReg() || a2.IsImm(), "WriteNormalOp - a1 and a2 cannot both be memory"); a1.WriteNormalOp(emit, true, op, a2, bits); } }