summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLubomir Litchev <lubol@microsoft.com>2016-01-10 15:11:09 -0800
committerLubomir Litchev <lubol@microsoft.com>2016-01-12 15:38:47 -0800
commitbf6d9f7a3651039c5ab28204ef7006b57a185285 (patch)
tree30c08a79f145d6b323a0e34c5016a17115da5ce1 /src
parent2a52c91242ca3010803e85f5857b977f470a0510 (diff)
downloadcoreclr-bf6d9f7a3651039c5ab28204ef7006b57a185285.tar.gz
coreclr-bf6d9f7a3651039c5ab28204ef7006b57a185285.tar.bz2
coreclr-bf6d9f7a3651039c5ab28204ef7006b57a185285.zip
Fix issue 2295.
Closes #2295. When creating shadow variables, copy the lvDontPromote flag from the shadowed variable.
Diffstat (limited to 'src')
-rw-r--r--src/jit/gschecks.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jit/gschecks.cpp b/src/jit/gschecks.cpp
index 9f85b557a0..915273fcfa 100644
--- a/src/jit/gschecks.cpp
+++ b/src/jit/gschecks.cpp
@@ -474,6 +474,9 @@ void Compiler::gsParamsToShadows()
dst = gtNewOperNode(GT_ADDR, TYP_BYREF, dst);
opAssign = gtNewCpObjNode(dst, src, clsHnd, false);
+#if FEATURE_MULTIREG_STRUCTS
+ lvaTable[shadowVar].lvDontPromote = lvaTable[lclNum].lvDontPromote;
+#endif // FEATURE_MULTIREG_STRUCTS
}
else
{