[RyuJIT/ARM32] Fix assertion failed 'remainingSize == TARGET_POINTER_SIZE'
authorHyeongseok Oh <hseok82.oh@samsung.com>
Tue, 30 May 2017 10:05:35 +0000 (19:05 +0900)
committerHyeongseok Oh <hseok82.oh@samsung.com>
Tue, 30 May 2017 10:05:35 +0000 (19:05 +0900)
Fix assertion failed by 'remainingSize == TARGET_POINTER_SIZE'
Fix to check register allocation correctly

src/jit/codegenarmarch.cpp

index f7edec1..5e8664a 100644 (file)
@@ -756,8 +756,7 @@ void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode)
                 else
                 {
                     // check for case of destroying the addrRegister while we still need it
-                    assert(loReg != addrReg);
-                    noway_assert(remainingSize == TARGET_POINTER_SIZE);
+                    assert(loReg != addrReg || remainingSize == TARGET_POINTER_SIZE);
 
                     // Load from our address expression source
                     emit->emitIns_R_R_I(INS_ldr, emitTypeSize(type), loReg, addrReg, structOffset);