From f99f302c9188e53eb745afa7bd5cc0b84d9f6092 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Tue, 2 Sep 2014 08:55:07 +0200 Subject: [PATCH] x64Emitter: assert instead of crashing when generating MOVZX with a wrong size --- Source/Core/Common/x64Emitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Common/x64Emitter.cpp b/Source/Core/Common/x64Emitter.cpp index 276b3a08c9..0a9a10487c 100644 --- a/Source/Core/Common/x64Emitter.cpp +++ b/Source/Core/Common/x64Emitter.cpp @@ -833,7 +833,7 @@ void XEmitter::MOVZX(int dbits, int sbits, X64Reg dest, OpArg src) } else { - Crash(); + _assert_msg_(DYNA_REC, 0, "MOVZX - Invalid size"); } src.WriteRest(this); }