From b8e9dd7ce9c93edf9c0a80edbfacd2c7a7a9a49b Mon Sep 17 00:00:00 2001 From: Steve MacLean Date: Thu, 27 Apr 2017 22:08:48 -0400 Subject: [PATCH] Add assert Commit migrated from https://github.com/dotnet/coreclr/commit/136b32f6b7148b9d8541cfd5f3ed0d7e141fd32b --- src/coreclr/src/jit/emitarm64.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/src/jit/emitarm64.cpp b/src/coreclr/src/jit/emitarm64.cpp index 1540ccc..e2a1ae1 100644 --- a/src/coreclr/src/jit/emitarm64.cpp +++ b/src/coreclr/src/jit/emitarm64.cpp @@ -5350,6 +5350,7 @@ void emitter::emitIns_R_R_R_I(instruction ins, if (attrReg2 != EA_UNKNOWN) { + assert((fmt == IF_LS_3B) || (fmt == IF_LS_3C)); if (EA_IS_GCREF(attrReg2)) { /* A special value indicates a GCref pointer value */ -- 2.7.4