From: Sinan Kaya <41809318+franksinankaya@users.noreply.github.com> Date: Thu, 17 Oct 2019 16:58:21 +0000 (-0700) Subject: Replace gtArgPlace. with AsArgPlace()-> X-Git-Tag: submit/tizen/20210909.063632~11030^2~350 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9a3e9a09a8ecf93d0106eb65e25a3299427195e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Replace gtArgPlace. with AsArgPlace()-> Commit migrated from https://github.com/dotnet/coreclr/commit/cecb0e25cdc99d893adc9c8c10fe68e94b27e550 --- diff --git a/src/coreclr/src/jit/codegencommon.cpp b/src/coreclr/src/jit/codegencommon.cpp index 8100943..55ce24f 100644 --- a/src/coreclr/src/jit/codegencommon.cpp +++ b/src/coreclr/src/jit/codegencommon.cpp @@ -1201,7 +1201,7 @@ unsigned CodeGenInterface::InferStructOpSizeAlign(GenTree* op, unsigned* alignme } else if (op->IsArgPlaceHolderNode()) { - CORINFO_CLASS_HANDLE clsHnd = op->gtArgPlace.gtArgPlaceClsHnd; + CORINFO_CLASS_HANDLE clsHnd = op->AsArgPlace()->gtArgPlaceClsHnd; assert(clsHnd != 0); opSize = roundUp(compiler->info.compCompHnd->getClassSize(clsHnd), TARGET_POINTER_SIZE); alignment = roundUp(compiler->info.compCompHnd->getClassAlignmentRequirement(clsHnd), TARGET_POINTER_SIZE); diff --git a/src/coreclr/src/jit/gentree.cpp b/src/coreclr/src/jit/gentree.cpp index 627c612..9e5e587 100644 --- a/src/coreclr/src/jit/gentree.cpp +++ b/src/coreclr/src/jit/gentree.cpp @@ -1344,7 +1344,7 @@ AGAIN: case GT_ARGPLACE: if ((op1->gtType == TYP_STRUCT) && - (op1->gtArgPlace.gtArgPlaceClsHnd != op2->gtArgPlace.gtArgPlaceClsHnd)) + (op1->AsArgPlace()->gtArgPlaceClsHnd != op2->AsArgPlace()->gtArgPlaceClsHnd)) { break; } @@ -7166,7 +7166,7 @@ GenTree* Compiler::gtCloneExpr( goto DONE; case GT_ARGPLACE: - copy = gtNewArgPlaceHolderNode(tree->gtType, tree->gtArgPlace.gtArgPlaceClsHnd); + copy = gtNewArgPlaceHolderNode(tree->gtType, tree->AsArgPlace()->gtArgPlaceClsHnd); goto DONE; case GT_FTN_ADDR: @@ -10011,9 +10011,9 @@ void Compiler::gtDispNode(GenTree* tree, IndentStack* indentStack, __in __in_z _ } } - if (tree->IsArgPlaceHolderNode() && (tree->gtArgPlace.gtArgPlaceClsHnd != nullptr)) + if (tree->IsArgPlaceHolderNode() && (tree->AsArgPlace()->gtArgPlaceClsHnd != nullptr)) { - printf(" => [clsHnd=%08X]", dspPtr(tree->gtArgPlace.gtArgPlaceClsHnd)); + printf(" => [clsHnd=%08X]", dspPtr(tree->AsArgPlace()->gtArgPlaceClsHnd)); } if (tree->gtOper == GT_RUNTIMELOOKUP) @@ -16794,7 +16794,7 @@ CORINFO_CLASS_HANDLE Compiler::gtGetStructHandleIfPresent(GenTree* tree) structHnd = tree->AsRetExpr()->gtRetClsHnd; break; case GT_ARGPLACE: - structHnd = tree->gtArgPlace.gtArgPlaceClsHnd; + structHnd = tree->AsArgPlace()->gtArgPlaceClsHnd; break; case GT_INDEX: structHnd = tree->gtIndex.gtStructElemClass; diff --git a/src/coreclr/src/jit/importer.cpp b/src/coreclr/src/jit/importer.cpp index 7f05f07..f512862 100644 --- a/src/coreclr/src/jit/importer.cpp +++ b/src/coreclr/src/jit/importer.cpp @@ -1628,7 +1628,7 @@ GenTree* Compiler::impNormStructVal(GenTree* structVal, break; case GT_ARGPLACE: - structVal->gtArgPlace.gtArgPlaceClsHnd = structHnd; + structVal->AsArgPlace()->gtArgPlaceClsHnd = structHnd; break; case GT_INDEX: