summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEugene Rozenfeld <erozen@microsoft.com>2017-06-09 15:24:26 -0700
committerGitHub <noreply@github.com>2017-06-09 15:24:26 -0700
commitda86bd58e4781077733b4dc1815a87092855912d (patch)
tree9b59fa3285011fdb27e99f0af6c0f2a1db00acc3 /src
parentd70747230545129a275dfff3a6f5fc1817acb912 (diff)
parentc1bac92bcba5f3c9af08ba5088aa27c264d23f37 (diff)
downloadcoreclr-da86bd58e4781077733b4dc1815a87092855912d.tar.gz
coreclr-da86bd58e4781077733b4dc1815a87092855912d.tar.bz2
coreclr-da86bd58e4781077733b4dc1815a87092855912d.zip
Merge pull request #12200 from erozenfeld/FastTailCallLoweringFix
Fix fast tail call lowering bug.
Diffstat (limited to 'src')
-rw-r--r--src/jit/lower.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/jit/lower.cpp b/src/jit/lower.cpp
index ae71fad657..3bc11b3bc1 100644
--- a/src/jit/lower.cpp
+++ b/src/jit/lower.cpp
@@ -1738,14 +1738,14 @@ void Lowering::LowerFastTailCall(GenTreeCall* call)
{
tmpLclNum = comp->lvaGrabTemp(
true DEBUGARG("Fast tail call lowering is creating a new local variable"));
- comp->lvaSortAgain = true;
- tmpType = genActualType(callerArgDsc->lvaArgType());
- comp->lvaTable[tmpLclNum].lvType = tmpType;
- comp->lvaTable[tmpLclNum].lvRefCnt = 1;
+ comp->lvaSortAgain = true;
+ tmpType = genActualType(callerArgDsc->lvaArgType());
+ comp->lvaTable[tmpLclNum].lvType = tmpType;
+ comp->lvaTable[tmpLclNum].lvRefCnt = 1;
+ comp->lvaTable[tmpLclNum].lvDoNotEnregister = comp->lvaTable[lcl->gtLclNum].lvDoNotEnregister;
}
lcl->SetLclNum(tmpLclNum);
- lcl->SetOper(GT_LCL_VAR);
}
}
}