From: Bruce Forstall Date: Tue, 2 May 2017 06:52:12 +0000 (-0700) Subject: Fix assert X-Git-Tag: submit/tizen/20210909.063632~11030^2~7048^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fa80add0f77ca58aacd3975ab5e372f25d6c069;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Fix assert Commit migrated from https://github.com/dotnet/coreclr/commit/942c5ac3bb1f73f2262dd828c74faf59b932f88a --- diff --git a/src/coreclr/src/jit/codegenarmarch.cpp b/src/coreclr/src/jit/codegenarmarch.cpp index a64c29b..2081587 100644 --- a/src/coreclr/src/jit/codegenarmarch.cpp +++ b/src/coreclr/src/jit/codegenarmarch.cpp @@ -95,7 +95,7 @@ void CodeGen::genIntrinsic(GenTreePtr treeNode) // void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode) { - assert(treeNode->OperGet() == GT_PUTARG_STK); + assert(treeNode->OperIs(GT_PUTARG_STK)); var_types targetType = treeNode->TypeGet(); GenTreePtr source = treeNode->gtOp1; emitter* emit = getEmitter(); @@ -537,12 +537,12 @@ void CodeGen::genPutArgStk(GenTreePutArgStk* treeNode) // void CodeGen::genPutArgReg(GenTreeOp* tree) { - assert(tree->OperGet() == GT_PUTARG_STK); + assert(tree->OperIs(GT_PUTARG_REG)); var_types targetType = tree->TypeGet(); regNumber targetReg = tree->gtRegNum; - assert(targetType != - TYP_STRUCT); // Any TYP_STRUCT register args should have been removed by fgMorphMultiregStructArg + // Any TYP_STRUCT register args should have been removed by fgMorphMultiregStructArg + assert(targetType != TYP_STRUCT); // We have a normal non-Struct targetType