summaryrefslogtreecommitdiff
path: root/Source/Core/Common/x64Emitter.cpp
diff options
context:
space:
mode:
authorFiora <fioraaeterna@gmail.com>2014-09-15 07:08:08 -0700
committerFiora <fioraaeterna@gmail.com>2014-09-15 07:08:08 -0700
commit02dce5dbbf7b399efda28601e32e2eeaf663c31a (patch)
tree9bab380fa73eea5f0625c67a6bc92b39ead2e9b9 /Source/Core/Common/x64Emitter.cpp
parent74f8a48ee6e967d9c46212fa48cd6392fdc9683f (diff)
x64Emitter: fix silent failure if WriteNormalOp is passed two memory operands
Should now fail loudly and clearly instead.
Diffstat (limited to 'Source/Core/Common/x64Emitter.cpp')
-rw-r--r--Source/Core/Common/x64Emitter.cpp1
1 files changed, 1 insertions, 0 deletions
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);
}
}