Add assert
authorSteve MacLean <sdmaclea@qti.qualcomm.com>
Fri, 28 Apr 2017 02:08:48 +0000 (22:08 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Apr 2017 02:08:48 +0000 (22:08 -0400)
src/jit/emitarm64.cpp

index 1540ccc..e2a1ae1 100644 (file)
@@ -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 */