summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2018-07-20 16:17:04 -0700
committerGitHub <noreply@github.com>2018-07-20 16:17:04 -0700
commit7df363ab08c1b21e18f68d95724c9172d30adbee (patch)
treec1a152ebfc65f053c7efec12a034a3969fedeb8d
parent4e452bc254f216ad0e57976b9a55196ef3948214 (diff)
parenta9135bff6b6978904011c287cedb64ee5f7d1a3a (diff)
downloadcoreclr-7df363ab08c1b21e18f68d95724c9172d30adbee.tar.gz
coreclr-7df363ab08c1b21e18f68d95724c9172d30adbee.tar.bz2
coreclr-7df363ab08c1b21e18f68d95724c9172d30adbee.zip
Merge pull request #19067 from CarolEidt/FixStructRefCnt
Remove incRefCnt from fgMakeOutgoingStructArgCopy
-rw-r--r--src/jit/morph.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp
index 3441b22032..5f4cfb5d99 100644
--- a/src/jit/morph.cpp
+++ b/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);