From 4643ff2398288a570d356c2e5052bd377e9bfae9 Mon Sep 17 00:00:00 2001 From: Carol Eidt Date: Fri, 20 Jul 2018 07:24:39 -0700 Subject: [PATCH] Remove incRefCnt from fgMakeOutgoingStructArgCopy Commit migrated from https://github.com/dotnet/coreclr/commit/a9135bff6b6978904011c287cedb64ee5f7d1a3a --- src/coreclr/src/jit/morph.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/coreclr/src/jit/morph.cpp b/src/coreclr/src/jit/morph.cpp index 92bb23e..de45684 100644 --- a/src/coreclr/src/jit/morph.cpp +++ b/src/coreclr/src/jit/morph.cpp @@ -5294,10 +5294,6 @@ void Compiler::fgMakeOutgoingStructArgCopy(GenTreeCall* call, GenTree* dest = gtNewLclvNode(tmp, lvaTable[tmp].lvType); dest->gtFlags |= (GTF_DONT_CSE | GTF_VAR_DEF); // This is a def of the local, "entire" by construction. - // TODO-Cleanup: This probably shouldn't be done here because arg morphing is done prior - // to ref counting of the lclVars. - lvaTable[tmp].incRefCnts(compCurBB->getBBWeight(this), this); - if (argx->gtOper == GT_OBJ) { argx->gtFlags &= ~(GTF_ALL_EFFECT) | (argx->AsBlk()->Addr()->gtFlags & GTF_ALL_EFFECT); -- 2.7.4