Allow GT_OBJ for Arm64
authorCarol Eidt <carol.eidt@microsoft.com>
Tue, 13 Sep 2016 23:56:41 +0000 (16:56 -0700)
committerCarol Eidt <carol.eidt@microsoft.com>
Tue, 13 Sep 2016 23:56:41 +0000 (16:56 -0700)
GT_OBJ is used on Arm64 for struct passing, but was inadvertently flagged
as an illegal node in Lowering.
Fix dotnet/coreclr#7160

Commit migrated from https://github.com/dotnet/coreclr/commit/1accf7ebbe677adc0558fdbd78c356454c14dcee

src/coreclr/src/jit/lowerarm64.cpp

index 709639d..46a1421 100644 (file)
@@ -523,12 +523,12 @@ void Lowering::TreeNodeInfoInit(GenTree* tree)
         break;
 
         case GT_BLK:
-        case GT_OBJ:
         case GT_DYN_BLK:
             // These should all be eliminated prior to Lowering.
             assert(!"Non-store block node in Lowering");
             info->srcCount = 0;
             info->dstCount = 0;
+            break;
 
         case GT_STORE_BLK:
         case GT_STORE_OBJ: